We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac51f3d commit 23c2d58Copy full SHA for 23c2d58
examples/transfer.rs
@@ -56,12 +56,13 @@ async fn main() -> anyhow::Result<()> {
56
let abs_path = std::path::absolute(filename)?;
57
let ticket: BlobTicket = ticket.parse()?;
58
59
- println!("Starting download.");
60
-
61
// For receiving files, we create a "downloader" that allows us to fetch files
62
// from other nodes via iroh connections
63
- store
64
- .downloader(&endpoint)
+ let downloader = store.downloader(&endpoint);
+
+ println!("Starting download.");
65
+ downloader
66
.download(ticket.hash(), Some(ticket.node_addr().node_id))
67
.await?;
68
0 commit comments