diff --git a/streams/examples/full-example/scenarios/basic.rs b/streams/examples/full-example/scenarios/basic.rs index 912c2f66..617f3305 100644 --- a/streams/examples/full-example/scenarios/basic.rs +++ b/streams/examples/full-example/scenarios/basic.rs @@ -41,7 +41,8 @@ pub(crate) async fn example(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); diff --git a/streams/examples/full-example/scenarios/did.rs b/streams/examples/full-example/scenarios/did.rs index 5a0fb2e1..3be4f437 100644 --- a/streams/examples/full-example/scenarios/did.rs +++ b/streams/examples/full-example/scenarios/did.rs @@ -54,7 +54,8 @@ pub async fn example(transport: Rc>) -> 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);