Skip to content

Commit

Permalink
Use isSuitablePeer as peer selection criteria when waiting for a peer…
Browse files Browse the repository at this point in the history
… in AbstractRetryingPeerTask

Signed-off-by: Matilda Clerke <[email protected]>
  • Loading branch information
Matilda-Clerke committed Dec 17, 2024
1 parent 06e6f1d commit e3919bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ protected void handleTaskError(final Throwable error) {
() ->
ethContext
.getEthPeers()
.waitForPeer((peer) -> true)
.waitForPeer(this::isSuitablePeer)
.orTimeout(5, TimeUnit.SECONDS)
// execute the task again
.whenComplete((r, t) -> executeTaskTimed()));
Expand Down

0 comments on commit e3919bc

Please sign in to comment.