Skip to content

Commit

Permalink
tiny cleanups on BlockBlobSidecarsTrackersPoolImpl (#8975)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenr authored Jan 9, 2025
1 parent 6cba4f6 commit 3f38727
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,6 @@ private void makeRoomForNewTracker() {
}
}

@SuppressWarnings("FutureReturnValueIgnored")
private void onFirstSeen(
final SlotAndBlockRoot slotAndBlockRoot, final Optional<RemoteOrigin> remoteOrigin) {
final boolean isLocalBlockProduction =
Expand All @@ -598,14 +597,16 @@ private void onFirstSeen(
final SafeFuture<Void> rpcFetchDelay =
asyncRunner.getDelayedFuture(calculateRpcFetchDelay(slotAndBlockRoot));

asyncRunner.runAsync(
() ->
// fetch blobs from EL with no delay
fetchMissingBlobsFromLocalEL(slotAndBlockRoot)
.handleException(this::logLocalElBlobsLookupFailure)
.thenCompose(__ -> rpcFetchDelay)
.thenRun(() -> fetchMissingBlockOrBlobsFromRPC(slotAndBlockRoot))
.finish(this::logBlockOrBlobsRPCFailure));
asyncRunner
.runAsync(
() ->
// fetch blobs from EL with no delay
fetchMissingBlobsFromLocalEL(slotAndBlockRoot)
.handleException(this::logLocalElBlobsLookupFailure)
.thenCompose(__ -> rpcFetchDelay)
.thenRun(() -> fetchMissingBlockOrBlobsFromRPC(slotAndBlockRoot))
.handleException(this::logBlockOrBlobsRPCFailure))
.ifExceptionGetsHereRaiseABug();
}

@VisibleForTesting
Expand Down

0 comments on commit 3f38727

Please sign in to comment.