Skip to content

Commit

Permalink
feat: Reset PUBLISHED_BLOCKS_COUNT on new stream
Browse files Browse the repository at this point in the history
  • Loading branch information
morgsmccauley committed Feb 23, 2024
1 parent 8e349d5 commit 95cbfef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions block-streamer/src/block_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ pub(crate) async fn start_block_stream(
) -> anyhow::Result<()> {
tracing::info!("Starting block stream",);

metrics::PUBLISHED_BLOCKS_COUNT
.with_label_values(&[&indexer.get_full_name()])
.reset();

let last_indexed_delta_lake_block = process_delta_lake_blocks(
start_block_height,
delta_lake_client,
Expand Down

0 comments on commit 95cbfef

Please sign in to comment.