From 44adb5bfa124a98b31a7746e40fe8e63c17563a0 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 27 Jun 2024 18:45:29 +0300 Subject: [PATCH] Add a proper break condition for the inner loop --- validator-network/src/single_response_requester.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/validator-network/src/single_response_requester.rs b/validator-network/src/single_response_requester.rs index 7021feaf33..aebdc67648 100644 --- a/validator-network/src/single_response_requester.rs +++ b/validator-network/src/single_response_requester.rs @@ -119,6 +119,8 @@ where // If there is also no more peers left to request from, this request has now failed as a whole. if self.remaining_peers.is_empty() { return Poll::Ready(None); + } else { + break; } } }