Skip to content

Commit

Permalink
fix: fix update wrong metric (#174)
Browse files Browse the repository at this point in the history
# Description
Follow up on #173

The metric was wrong
  • Loading branch information
anxolin authored Dec 7, 2024
1 parent e98fb81 commit 57965f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export class ChainContext {
log.debug(`Watchdog timeout: ${watchdogTimeout} seconds`);
let lastBlockReceived = lastProcessedBlock;
provider.on("block", async (blockNumber: number) => {
metrics.blockHeight.labels(chainId.toString()).set(blockNumber);
metrics.blockHeightLatest.labels(chainId.toString()).set(blockNumber);

try {
log = getLogger({
Expand Down

0 comments on commit 57965f1

Please sign in to comment.