Skip to content

Commit

Permalink
small optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Dec 31, 2024
1 parent 1e25b23 commit 6b0fd42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public Bytes32 getKey() {

@Override
SafeFuture<FetchResult<List<BlobSidecar>>> fetch(final Eth2Peer peer) {
final List<BlobSidecar> blobSidecars = new ArrayList<>();
final List<BlobSidecar> blobSidecars = new ArrayList<>(blobIdentifiers.size());
return peer.requestBlobSidecarsByRoot(
blobIdentifiers, RpcResponseListener.from(blobSidecars::add))
.thenApply(__ -> FetchResult.createSuccessful(peer, blobSidecars))
Expand Down

0 comments on commit 6b0fd42

Please sign in to comment.