Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
Changed stream_idx and added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Brord van Wierst committed May 17, 2022
1 parent 12295a0 commit c9f93ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion streams/examples/full-example/scenarios/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ pub(crate) async fn example<T: GenericTransport>(transport: T, author_seed: &str
.build()?;

println!("> Author creates stream and sends its announcement");
let announcement = author.create_stream(8).await?;
// Start at index 1, because we can. Will error if its already in use
let announcement = author.create_stream(1).await?;
print_send_result(&announcement);
print_user("Author", &author);

Expand Down
3 changes: 2 additions & 1 deletion streams/examples/full-example/scenarios/did.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ pub async fn example(transport: Rc<RefCell<tangle::Client>>) -> Result<()> {
.build()?;

println!("> Author creates stream and sends its announcement");
let announcement = author.create_stream(8).await?;
// Start at index 1, because we can. Will error if its already in use
let announcement = author.create_stream(1).await?;
print_send_result(&announcement);
print_user("Author", &author);

Expand Down

0 comments on commit c9f93ed

Please sign in to comment.