File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,9 @@ Here is a basic example of how to set up `iroh-blobs` with `iroh`:
3535``` rust,no_run
3636use iroh::{protocol::Router, Endpoint};
3737use iroh_blobs::{store::mem::MemStore, BlobsProtocol, ticket::BlobTicket};
38- use n0_error::{Result, StdResultExt};
3938
4039#[tokio::main]
41- async fn main() -> Result<()> {
40+ async fn main() -> anyhow:: Result<()> {
4241 // create an iroh endpoint that includes the standard discovery mechanisms
4342 // we've built at number0
4443 let endpoint = Endpoint::bind().await?;
@@ -63,7 +62,7 @@ async fn main() -> Result<()> {
6362 tokio::signal::ctrl_c().await;
6463
6564 // clean shutdown of router and store
66- router.shutdown().await.anyerr() ?;
65+ router.shutdown().await?;
6766 Ok(())
6867}
6968```
You can’t perform that action at this time.
0 commit comments