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 libp2p#2741 the default dial concurrency factor is > 1,
more specifically 8. Thus there is no need to explicitly set it anylonger.
  • Loading branch information
mxinden committed Mar 4, 2023
1 parent 050504f commit 73b9ee7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion protocols/dcutr/examples/dcutr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,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 73b9ee7

Please sign in to comment.