mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: poll_tick does not register waker if ready (#2276)
This commit is contained in:
@ -715,6 +715,8 @@ impl PeersManager {
|
||||
}
|
||||
|
||||
if self.refill_slots_interval.poll_tick(cx).is_ready() {
|
||||
// this ensures the manager will be polled periodically, see [Interval::poll_tick]
|
||||
let _ = self.refill_slots_interval.poll_tick(cx);
|
||||
self.fill_outbound_slots();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user