Skip to content

Commit

Permalink
hyperchat example: default bootstrap address
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed Apr 1, 2022
1 parent 5e27609 commit da1c2fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/hyperchat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit da1c2fd

Please sign in to comment.