Skip to content

Commit 44adb5b

Browse files
nibharhrxi
authored andcommitted
Add a proper break condition for the inner loop
1 parent 005020e commit 44adb5b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

validator-network/src/single_response_requester.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ where
119119
// If there is also no more peers left to request from, this request has now failed as a whole.
120120
if self.remaining_peers.is_empty() {
121121
return Poll::Ready(None);
122+
} else {
123+
break;
122124
}
123125
}
124126
}

0 commit comments

Comments
 (0)