Skip to content

Commit 9cca75b

Browse files
nit
1 parent 0891111 commit 9cca75b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

chain/src/application.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,13 @@ impl<E: Clock + Storage + Metrics> Reporter for Application<E> {
125125

126126
async fn report(&mut self, activity: Self::Activity) {
127127
if let Update::Block(block, ack_rx) = activity {
128+
// Cache the finalized block in memory and enqueue its digest
129+
// before acking so the consumer can recover it across restarts.
128130
if let Some(backfiller) = &self.backfiller {
129-
// Cache the finalized block in memory and enqueue its digest
130-
// before acking so the consumer can recover it across restarts.
131131
backfiller.record(&block).await;
132132
}
133+
134+
// Acknowledge the block.
133135
info!(height = %block.height(), "finalized block");
134136
ack_rx.acknowledge();
135137
}

0 commit comments

Comments
 (0)