diff --git a/examples/transfer.rs b/examples/transfer.rs index b3146d647..48fba6ba3 100644 --- a/examples/transfer.rs +++ b/examples/transfer.rs @@ -1,7 +1,7 @@ use std::path::PathBuf; use iroh::{protocol::Router, Endpoint}; -use iroh_blobs::{net_protocol::Blobs, store::mem::MemStore, ticket::BlobTicket}; +use iroh_blobs::{store::mem::MemStore, ticket::BlobTicket, BlobsProtocol}; #[tokio::main] async fn main() -> anyhow::Result<()> { @@ -12,7 +12,7 @@ async fn main() -> anyhow::Result<()> { // We initialize an in-memory backing store for iroh-blobs let store = MemStore::new(); // Then we initialize a struct that can accept blobs requests over iroh connections - let blobs = Blobs::new(&store, endpoint.clone(), None); + let blobs = BlobsProtocol::new(&store, endpoint.clone(), None); // Grab all passed in arguments, the first one is the binary itself, so we skip it. let args: Vec = std::env::args().skip(1).collect();