Skip to content

Commit

Permalink
[feat] Expose more API
Browse files Browse the repository at this point in the history
  • Loading branch information
ppodolsky committed Apr 11, 2024
1 parent 699265e commit b5e4ce3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions iroh/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ impl<D: BaoStore> Node<D> {
pub fn cancel_token(&self) -> CancellationToken {
self.inner.cancel_token.clone()
}

/// Expose redb database
pub fn db(&self) -> &D {
&self.inner.db
}
}

/// The future completes when the spawned tokio task finishes.
Expand Down
1 change: 0 additions & 1 deletion iroh/src/sync_engine/live.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ impl<B: iroh_bytes::store::Store> LiveActor<B> {
// Inform our neighbors that we have new content ready.
self.broadcast_neighbors(namespace, &Op::ContentReady(hash)).await;
}

}
}
}
Expand Down

0 comments on commit b5e4ce3

Please sign in to comment.