Skip to content

Commit f07dac4

Browse files
committed
Revert to using anyhow in README.md example
1 parent 26a5bc7 commit f07dac4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ Here is a basic example of how to set up `iroh-blobs` with `iroh`:
3535
```rust,no_run
3636
use iroh::{protocol::Router, Endpoint};
3737
use 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
```

0 commit comments

Comments
 (0)