mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 01:01:34 +00:00
build(deps): Bump rand to 0.8 and quickcheck to 1 (#2857)
Co-authored-by: Thomas Eizinger <thomas@eizinger.io> Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
@ -295,7 +295,7 @@ where
|
||||
}
|
||||
|
||||
// Not always polling handlers in the same order should give anyone the chance to make progress.
|
||||
let pos = rand::thread_rng().gen_range(0, self.handlers.len());
|
||||
let pos = rand::thread_rng().gen_range(0..self.handlers.len());
|
||||
|
||||
for (k, h) in self.handlers.iter_mut().skip(pos) {
|
||||
if let Poll::Ready(e) = h.poll(cx) {
|
||||
|
Reference in New Issue
Block a user