mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: use while for all poll_tick() to make code consistent (#7510)
This commit is contained in:
@ -1577,8 +1577,7 @@ impl Discv4Service {
|
||||
}
|
||||
|
||||
// re-ping some peers
|
||||
if self.ping_interval.poll_tick(cx).is_ready() {
|
||||
let _ = self.ping_interval.poll_tick(cx);
|
||||
while self.ping_interval.poll_tick(cx).is_ready() {
|
||||
self.re_ping_oldest();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user