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 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?;
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)
Original file line number Diff line number Diff line change 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).
66use std:: {
77 fmt:: Debug ,
You can’t perform that action at this time.
0 commit comments