From da1c2fdd26b00a99150a03c194d5808a98bb8f5f Mon Sep 17 00:00:00 2001 From: "Franz Heinzmann (Frando)" Date: Fri, 1 Apr 2022 16:11:22 +0200 Subject: [PATCH] hyperchat example: default bootstrap address --- README.md | 4 ++-- examples/hyperchat.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5d70ab0..7a23a50 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ Running bootstrap node on 0.0.0.0:49737 ``` 2) Run clients and write with each other. ``` -$ cargo run --example hyperchat -- -b 127.0.0.1:49737 join --topics asdf --name alice +$ cargo run --example hyperchat -- join --topics asdf --name alice your name: alice join topic "asdf": a05d11c6234b3321315ec175592dfc193f5650a28b569b3e09bac5a4216bb138 [tcp:127.0.0.1:42172] connected @@ -141,7 +141,7 @@ hello! ``` ``` -$ cargo run --example hyperchat -- -b 127.0.0.1:49737 join --topics asdf --name bob +$ cargo run --example hyperchat -- join -t asdf -n bob your name: bob join topic "asdf": a05d11c6234b3321315ec175592dfc193f5650a28b569b3e09bac5a4216bb138 [utp:127.0.0.1:41187] connected diff --git a/examples/hyperchat.rs b/examples/hyperchat.rs index cb50a0c..9c40c8f 100644 --- a/examples/hyperchat.rs +++ b/examples/hyperchat.rs @@ -69,7 +69,7 @@ async fn main() -> anyhow::Result<()> { let config = if !opts.bootstrap.is_empty() { config.set_bootstrap_nodes(&opts.bootstrap) } else { - config + config.set_bootstrap_nodes(&["127.0.0.1:49737"]) }; let name = join_opts.name.unwrap_or_else(random_name); eprintln!("your name: {}", name);