Skip to content

Commit

Permalink
Add a proper break condition for the inner loop
Browse files Browse the repository at this point in the history
  • Loading branch information
nibhar authored and hrxi committed Jun 27, 2024
1 parent 005020e commit 44adb5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions validator-network/src/single_response_requester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 44adb5b

Please sign in to comment.