Skip to content

Commit

Permalink
rename metric (#1183)
Browse files Browse the repository at this point in the history
  • Loading branch information
dydxwill authored Mar 15, 2024
1 parent dd41d0a commit 085b88e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion indexer/services/ender/__tests__/lib/on-message.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ describe('on-message', () => {

await onMessage(kafkaMessage);

expect(stats.increment).toHaveBeenCalledWith(`${config.SERVICE_NAME}.block_already_parsed.failure`, 1);
expect(stats.increment).toHaveBeenCalledWith(`${config.SERVICE_NAME}.block_already_parsed`, 1);
expect(stats.increment).toHaveBeenCalledWith('ender.received_kafka_message', 1);
expect(stats.timing).toHaveBeenCalledWith(
'ender.message_time_in_queue', expect.any(Number), 1, { topic: KafkaTopics.TO_ENDER });
Expand Down
2 changes: 1 addition & 1 deletion indexer/services/ender/src/caches/block-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function shouldSkipBlock(
canRefreshCache: boolean = true,
): Promise<boolean> {
if (blockAlreadyProcessed(blockHeight)) {
stats.increment(`${config.SERVICE_NAME}.block_already_parsed.failure`, 1);
stats.increment(`${config.SERVICE_NAME}.block_already_parsed`, 1);
logger.info({
at: 'onMessage#onMessage',
message: `Already processed block with block height: ${blockHeight}, so skipping`,
Expand Down

0 comments on commit 085b88e

Please sign in to comment.