Skip to content

Commit b43288f

Browse files
committed
fix docs
1 parent 9eb371a commit b43288f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/net_protocol.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! ```rust
88
//! # async fn example() -> anyhow::Result<()> {
99
//! use iroh::{protocol::Router, Endpoint};
10-
//! use iroh_blobs::{net_protocol::Blobs, store};
10+
//! use iroh_blobs::{store, BlobsProtocol};
1111
//!
1212
//! // create a store
1313
//! let store = store::fs::FsStore::load("blobs").await?;
@@ -19,7 +19,7 @@
1919
//! let endpoint = Endpoint::builder().discovery_n0().bind().await?;
2020
//!
2121
//! // create a blobs protocol handler
22-
//! let blobs = Blobs::new(&store, endpoint.clone(), None);
22+
//! let blobs = BlobsProtocol::new(&store, endpoint.clone(), None);
2323
//!
2424
//! // create a router and add the blobs protocol handler
2525
//! let router = Router::builder(endpoint)

src/provider.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! The low level server side API
22
//!
33
//! Note that while using this API directly is fine, the standard way
4-
//! to provide data is to just register a [`crate::net_protocol`] protocol
4+
//! to provide data is to just register a [`crate::BlobsProtocol`] protocol
55
//! handler with an [`iroh::Endpoint`](iroh::protocol::Router).
66
use std::{
77
fmt::Debug,

0 commit comments

Comments
 (0)