Skip to content

Commit

Permalink
Hoist uses to top of file
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Jun 18, 2024
1 parent 92bf84e commit d41276a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ledger/src/blockstore_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ use {
time::{Duration, Instant},
},
thiserror::Error,
ExecuteTimingType::{NumExecuteBatches, TotalBatchesLen},
};

pub struct TransactionBatchWithIndexes<'a, 'b> {
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit d41276a

Please sign in to comment.