From 1a94e49afd19be006218bf897e930210a2957920 Mon Sep 17 00:00:00 2001 From: Ruediger Klaehn Date: Fri, 11 Jul 2025 16:34:14 +0300 Subject: [PATCH] Fix example. Was broken by https://github.com/n0-computer/iroh-blobs/pull/112 --- examples/transfer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();