Skip to content

Commit e41ef71

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

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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::{store::mem::MemStore, ticket::BlobTicket, BlobsProtocol};
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();

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub mod protocol;
1313
pub mod provider;
1414
pub mod test;
1515
pub mod ticket;
16-
pub mod util;
16+
pub(crate) mod util;
1717

1818
#[cfg(test)]
1919
mod tests;

0 commit comments

Comments
 (0)