File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
//! ```rust
8
8
//! # async fn example() -> anyhow::Result<()> {
9
9
//! use iroh::{protocol::Router, Endpoint};
10
- //! use iroh_blobs::{net_protocol::Blobs, store };
10
+ //! use iroh_blobs::{store, BlobsProtocol };
11
11
//!
12
12
//! // create a store
13
13
//! let store = store::fs::FsStore::load("blobs").await?;
19
19
//! let endpoint = Endpoint::builder().discovery_n0().bind().await?;
20
20
//!
21
21
//! // create a blobs protocol handler
22
- //! let blobs = Blobs ::new(&store, endpoint.clone(), None);
22
+ //! let blobs = BlobsProtocol ::new(&store, endpoint.clone(), None);
23
23
//!
24
24
//! // create a router and add the blobs protocol handler
25
25
//! let router = Router::builder(endpoint)
Original file line number Diff line number Diff line change 1
1
//! The low level server side API
2
2
//!
3
3
//! 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
5
5
//! handler with an [`iroh::Endpoint`](iroh::protocol::Router).
6
6
use std:: {
7
7
fmt:: Debug ,
You can’t perform that action at this time.
0 commit comments