Skip to content

Commit

Permalink
style: this
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr committed Jan 17, 2025
1 parent 318a4c3 commit d8133b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/event-stream/event-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,8 @@ function createMessageProcessorQueue(db: PgWriteStore): EventMessageHandler {
blocksInPreviousBurnBlock: new prom.Gauge({
name: 'stacks_blocks_in_previous_burn_block',
help: 'Number of Stacks blocks produced in the previous burn block',
collect: async () => {
metrics?.blocksInPreviousBurnBlock.set(await db.getStacksBlockCountAtPreviousBurnBlock());
async collect() {
this.set(await db.getStacksBlockCountAtPreviousBurnBlock());
},
}),
};
Expand Down

0 comments on commit d8133b1

Please sign in to comment.