Skip to content

Commit 92c800e

Browse files
committed
Fix example.
Was broken by #112
1 parent 568a3e3 commit 92c800e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/transfer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::path::PathBuf;
22

33
use iroh::{protocol::Router, Endpoint};
4-
use iroh_blobs::{net_protocol::Blobs, store::mem::MemStore, ticket::BlobTicket};
4+
use iroh_blobs::{BlobsProtocol, store::mem::MemStore, ticket::BlobTicket};
55

66
#[tokio::main]
77
async fn main() -> anyhow::Result<()> {
@@ -12,7 +12,7 @@ async fn main() -> anyhow::Result<()> {
1212
// We initialize an in-memory backing store for iroh-blobs
1313
let store = MemStore::new();
1414
// Then we initialize a struct that can accept blobs requests over iroh connections
15-
let blobs = Blobs::new(&store, endpoint.clone(), None);
15+
let blobs = BlobsProtocol::new(&store, endpoint.clone(), None);
1616

1717
// Grab all passed in arguments, the first one is the binary itself, so we skip it.
1818
let args: Vec<String> = std::env::args().skip(1).collect();

0 commit comments

Comments
 (0)