mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-29 18:51:22 +00:00
floodsub example typo (#148)
This commit is contained in:
parent
18e1727842
commit
a3b1d785e4
@ -139,7 +139,7 @@ fn main() {
|
||||
|
||||
let msg = String::from_utf8(mem::replace(&mut buffer, Vec::new())).unwrap();
|
||||
if msg.starts_with("/dial ") {
|
||||
let target: Multiaddr = msg[5..].parse().unwrap();
|
||||
let target: Multiaddr = msg[6..].parse().unwrap();
|
||||
println!("*Dialing {}*", target);
|
||||
swarm_controller
|
||||
.dial_to_handler(target, floodsub_upgrade.clone())
|
||||
|
Loading…
x
Reference in New Issue
Block a user