From 6dcaf3a486cfa74ef014a3cb26fa431f1931c472 Mon Sep 17 00:00:00 2001 From: aldenhu Date: Fri, 27 Sep 2024 22:08:44 +0000 Subject: [PATCH] fix wrong timer used --- execution/executor/src/block_executor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/execution/executor/src/block_executor.rs b/execution/executor/src/block_executor.rs index f4cc622dd4f3b..c9fd61824cd28 100644 --- a/execution/executor/src/block_executor.rs +++ b/execution/executor/src/block_executor.rs @@ -10,8 +10,8 @@ use crate::{ }, logging::{LogEntry, LogSchema}, metrics::{ - CHUNK_OTHER_TIMERS, COMMIT_BLOCKS, CONCURRENCY_GAUGE, EXECUTE_BLOCK, OTHER_TIMERS, - SAVE_TRANSACTIONS, TRANSACTIONS_SAVED, UPDATE_LEDGER, VM_EXECUTE_BLOCK, + COMMIT_BLOCKS, CONCURRENCY_GAUGE, EXECUTE_BLOCK, OTHER_TIMERS, SAVE_TRANSACTIONS, + TRANSACTIONS_SAVED, UPDATE_LEDGER, VM_EXECUTE_BLOCK, }, }; use anyhow::Result; @@ -388,7 +388,7 @@ where } fn commit_ledger(&self, ledger_info_with_sigs: LedgerInfoWithSignatures) -> ExecutorResult<()> { - let _timer = CHUNK_OTHER_TIMERS.timer_with(&["commit_ledger"]); + let _timer = OTHER_TIMERS.timer_with(&["commit_ledger"]); let block_id = ledger_info_with_sigs.ledger_info().consensus_block_id(); info!(