We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcf32b9 commit 69982a4Copy full SHA for 69982a4
beacon_node/lighthouse_network/src/config.rs
@@ -270,11 +270,8 @@ impl Config {
270
let mut ctx = std::task::Context::from_waker(futures::task::noop_waker_ref());
271
272
// Ensure all addresses are added.
273
- loop {
274
- match watcher.poll_if_event(&mut ctx) {
275
- std::task::Poll::Ready(Ok(_)) => continue,
276
- _ => break,
277
- }
+ while let std::task::Poll::Ready(Ok(_)) = watcher.poll_if_event(&mut ctx) {
+ continue;
278
}
279
280
watcher
0 commit comments