mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-01 20:21:21 +00:00
fix(dcutr): don't set dial concurrency factor in example
Since https://github.com/libp2p/rust-libp2p/pull/2741 the default dial concurrency factor is > 1, more specifically 8. Thus there is no need to explicitly set it anylonger. Pull-Request: #3550.
This commit is contained in:
parent
050504fbe5
commit
1a2608d084
@ -36,7 +36,6 @@ use libp2p_relay as relay;
|
||||
use libp2p_swarm::{NetworkBehaviour, SwarmBuilder, SwarmEvent};
|
||||
use libp2p_tcp as tcp;
|
||||
use log::info;
|
||||
use std::convert::TryInto;
|
||||
use std::error::Error;
|
||||
use std::net::Ipv4Addr;
|
||||
use std::str::FromStr;
|
||||
@ -164,7 +163,6 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
Ok(tp) => SwarmBuilder::with_executor(transport, behaviour, local_peer_id, tp),
|
||||
Err(_) => SwarmBuilder::without_executor(transport, behaviour, local_peer_id),
|
||||
}
|
||||
.dial_concurrency_factor(10_u8.try_into().unwrap())
|
||||
.build();
|
||||
|
||||
swarm
|
||||
|
Loading…
x
Reference in New Issue
Block a user