Skip to content

Commit

Permalink
fix(dcutr): don't set dial concurrency factor in example
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mxinden authored Mar 6, 2023
1 parent 050504f commit 1a2608d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions protocols/dcutr/examples/dcutr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1a2608d

Please sign in to comment.