Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ impl Engine {
///
/// This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
/// thread for the actor interacting with doc storage.
#[allow(clippy::too_many_arguments)]
pub async fn spawn(
endpoint: Endpoint,
gossip: Gossip,
Expand All @@ -68,6 +69,7 @@ impl Engine {
downloader: Downloader,
default_author_storage: DefaultAuthorStorage,
protect_cb: Option<ProtectCallbackHandler>,
incomplete_blob_check_interval: Option<std::time::Duration>,
) -> anyhow::Result<Self> {
let (live_actor_tx, to_live_actor_recv) = mpsc::channel(ACTOR_CHANNEL_CAP);
let me = endpoint.id().fmt_short().to_string();
Expand Down Expand Up @@ -122,6 +124,7 @@ impl Engine {
to_live_actor_recv,
live_actor_tx.clone(),
sync.metrics().clone(),
incomplete_blob_check_interval,
)?;
let actor_handle = n0_future::task::spawn(
async move {
Expand Down
Loading