From d41276a2c64428a8b4e326a8816e0afbc67d26b0 Mon Sep 17 00:00:00 2001 From: Ryo Onodera Date: Tue, 18 Jun 2024 22:28:36 +0900 Subject: [PATCH] Hoist uses to top of file --- ledger/src/blockstore_processor.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ledger/src/blockstore_processor.rs b/ledger/src/blockstore_processor.rs index db128f886ec21e..35e287a2e2118e 100644 --- a/ledger/src/blockstore_processor.rs +++ b/ledger/src/blockstore_processor.rs @@ -80,6 +80,7 @@ use { time::{Duration, Instant}, }, thiserror::Error, + ExecuteTimingType::{NumExecuteBatches, TotalBatchesLen}, }; pub struct TransactionBatchWithIndexes<'a, 'b> { @@ -1155,10 +1156,8 @@ impl BatchExecutionTiming { saturating_add_assign!(*wall_clock_us, new_batch.execute_batches_us); - use ExecuteTimingType::NumExecuteBatches; // These metrics aren't applicable for the unified scheduler if !is_unified_scheduler_enabled { - use ExecuteTimingType::TotalBatchesLen; totals.saturating_add_in_place(TotalBatchesLen, new_batch.total_batches_len); totals.saturating_add_in_place(NumExecuteBatches, 1); }