Skip to content

Commit

Permalink
rename delegate to listener
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Nov 2, 2023
1 parent 51eb2c9 commit 8c96d60
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,24 @@
public class BlobSidecarsByRootListenerValidatingProxy extends BlobSidecarsByRootValidator
implements RpcResponseListener<BlobSidecar> {

private final RpcResponseListener<BlobSidecar> delegate;
private final RpcResponseListener<BlobSidecar> listener;

public BlobSidecarsByRootListenerValidatingProxy(
final Peer peer,
final Spec spec,
final RpcResponseListener<BlobSidecar> delegate,
final RpcResponseListener<BlobSidecar> listener,
final KZG kzg,
final List<BlobIdentifier> expectedBlobIdentifiers) {
super(peer, spec, kzg, expectedBlobIdentifiers);
this.delegate = delegate;
this.listener = listener;
}

@Override
public SafeFuture<?> onResponse(final BlobSidecar blobSidecar) {
return SafeFuture.of(
() -> {
validate(blobSidecar);
return delegate.onResponse(blobSidecar);
return listener.onResponse(blobSidecar);
});
}
}

0 comments on commit 8c96d60

Please sign in to comment.