From 1a2608d084baa19be5b34256bc05a560fae5e3a0 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Mon, 6 Mar 2023 12:48:03 +0100 Subject: [PATCH] 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. --- protocols/dcutr/examples/dcutr.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/protocols/dcutr/examples/dcutr.rs b/protocols/dcutr/examples/dcutr.rs index 63a55c0dc2f..5daa7dcb6b2 100644 --- a/protocols/dcutr/examples/dcutr.rs +++ b/protocols/dcutr/examples/dcutr.rs @@ -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> { 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