chore: use while for all poll_tick() to make code consistent (#7510)

This commit is contained in:
int88
2024-04-08 23:15:25 +08:00
committed by GitHub
parent 9d2fdd5e3f
commit d6dd1c2dab

View File

@ -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();
}