Skip to content

Commit 69dd2b4

Browse files
authored
docs: update quickstart blob syntax & run command (#365)
The Blob syntax changed and the example doesn't say anything about an `--example` project. These were the only things I needed to tweak to get the quickstart working.
1 parent d77a3ea commit 69dd2b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/docs/quickstart/page.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ async fn main() -> anyhow::Result<()> {
9090
// We initialize an in-memory backing store for iroh-blobs
9191
let store = MemStore::new();
9292
// Then we initialize a struct that can accept blobs requests over iroh connections
93-
let blobs = Blobs::new(&store, endpoint.clone(), None);
93+
let blobs = BlobsProtocol::new(&store, endpoint.clone(), None);
9494

9595
// ...
9696

@@ -124,11 +124,11 @@ match arg_refs.as_slice() {
124124
println!("Couldn't parse command line arguments: {args:?}");
125125
println!("Usage:");
126126
println!(" # to send:");
127-
println!(" cargo run --example transfer -- send [FILE]");
127+
println!(" cargo run -- send [FILE]");
128128
println!(" # this will print a ticket.");
129129
println!();
130130
println!(" # to receive:");
131-
println!(" cargo run --example transfer -- receive [TICKET] [FILE]");
131+
println!(" cargo run -- receive [TICKET] [FILE]");
132132
}
133133
}
134134
```
@@ -177,7 +177,7 @@ let ticket = BlobTicket::new(node_id.into(), tag.hash, tag.format);
177177

178178
println!("File hashed. Fetch this file by running:");
179179
println!(
180-
"cargo run --example transfer -- receive {ticket} {}",
180+
"cargo run -- receive {ticket} {}",
181181
filename.display()
182182
);
183183
```

0 commit comments

Comments
 (0)