Skip to content

Commit

Permalink
improve integration test
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
tbenr committed Oct 31, 2024
1 parent 4f00e7e commit cb269c5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ void importBlobSidecars(
void publishBlobSidecars(
final List<BlobSidecar> blobSidecars,
final BlockPublishingPerformance blockPublishingPerformance) {
blockPublishingPerformance.blobSidecarsPublishingInitiated();
blobSidecarGossipChannel.publishBlobSidecars(blobSidecars).ifExceptionGetsHereRaiseABug();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ void importBlobSidecars(
@Override
SafeFuture<Void> publishBlock(
final SignedBeaconBlock block, final BlockPublishingPerformance blockPublishingPerformance) {
return blockGossipChannel
.publishBlock(block)
.alwaysRun(blockPublishingPerformance::blockPublishingInitiated);
blockPublishingPerformance.blockPublishingInitiated();
return blockGossipChannel.publishBlock(block);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void builderGetPayload() {}
public void blobSidecarsPrepared() {}

@Override
public void blockAndBlobSidecarsPublishingInitiated() {}
public void blobSidecarsPublishingInitiated() {}

@Override
public void blockPublishingInitiated() {}
Expand All @@ -38,7 +38,7 @@ public void blockPublishingInitiated() {}
public void blockImportCompleted() {}
};

void blockAndBlobSidecarsPublishingInitiated();
void blobSidecarsPublishingInitiated();

void blockPublishingInitiated();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ public void blobSidecarsPrepared() {
}

@Override
public void blockAndBlobSidecarsPublishingInitiated() {
performanceTracker.addEvent("block_and_blob_sidecars_publishing_initiated");
public void blockPublishingInitiated() {
performanceTracker.addEvent("block_publishing_initiated");
}

@Override
public void blockPublishingInitiated() {
performanceTracker.addEvent("block_publishing_initiated");
public void blobSidecarsPublishingInitiated() {
performanceTracker.addEvent("blob_sidecars_publishing_initiated");
}

@Override
Expand Down

0 comments on commit cb269c5

Please sign in to comment.