Skip to content

Commit 1a2608d

Browse files
authored
fix(dcutr): don't set dial concurrency factor in example
Since #2741 the default dial concurrency factor is > 1, more specifically 8. Thus there is no need to explicitly set it anylonger. Pull-Request: #3550.
1 parent 050504f commit 1a2608d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

protocols/dcutr/examples/dcutr.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ use libp2p_relay as relay;
3636
use libp2p_swarm::{NetworkBehaviour, SwarmBuilder, SwarmEvent};
3737
use libp2p_tcp as tcp;
3838
use log::info;
39-
use std::convert::TryInto;
4039
use std::error::Error;
4140
use std::net::Ipv4Addr;
4241
use std::str::FromStr;
@@ -164,7 +163,6 @@ fn main() -> Result<(), Box<dyn Error>> {
164163
Ok(tp) => SwarmBuilder::with_executor(transport, behaviour, local_peer_id, tp),
165164
Err(_) => SwarmBuilder::without_executor(transport, behaviour, local_peer_id),
166165
}
167-
.dial_concurrency_factor(10_u8.try_into().unwrap())
168166
.build();
169167

170168
swarm

0 commit comments

Comments
 (0)