diff --git a/core/src/connection/pool/concurrent_dial.rs b/core/src/connection/pool/concurrent_dial.rs index a7434a23fe9..4e960e09188 100644 --- a/core/src/connection/pool/concurrent_dial.rs +++ b/core/src/connection/pool/concurrent_dial.rs @@ -81,7 +81,7 @@ where let dials = FuturesUnordered::new(); while let Some(dial) = pending_dials.next() { dials.push(dial); - if dials.len() == concurrency_factor.get().into() { + if dials.len() == concurrency_factor.get() as usize { break; } }