mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-28 10:11:19 +00:00
core/: Help the compiler disambiguate usize inference (#2310)
Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
parent
185b763803
commit
6e76435b80
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user