Skip to content

Commit 5ece40f

Browse files
authored
fix: fix connect example (#113)
## Description Was broken by #112 ## Breaking Changes None ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented.
1 parent 568a3e3 commit 5ece40f

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::{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();

0 commit comments

Comments
 (0)