diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index edb61914cb53ed..489f617647fca9 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -7461,7 +7461,7 @@ impl AccountsDb { config: &CalcAccountsHashConfig<'_>, filler_account_suffix: Option<&Pubkey>, ) -> Result, AccountsHashVerificationError> { - let _ = self.active_stats.activate(ActiveStatItem::HashScan); + let _guard = self.active_stats.activate(ActiveStatItem::HashScan); let bin_calculator = PubkeyBinCalculator24::new(bins); assert!(bin_range.start < bins && bin_range.end <= bins && bin_range.start < bin_range.end); diff --git a/runtime/src/accounts_hash.rs b/runtime/src/accounts_hash.rs index 8b819c28c98cf7..e012b3ff212c8b 100644 --- a/runtime/src/accounts_hash.rs +++ b/runtime/src/accounts_hash.rs @@ -788,7 +788,7 @@ impl<'a> AccountsHasher<'a> { // a. vec: PUBKEY_BINS_FOR_CALCULATING_HASHES in pubkey order // vec: individual hashes in pubkey order, 1 hash per // b. lamports - let _ = self.active_stats.activate(ActiveStatItem::HashDeDup); + let _guard = self.active_stats.activate(ActiveStatItem::HashDeDup); let mut zeros = Measure::start("eliminate zeros"); let min_max_sum_entries_hashes = Mutex::new((usize::MAX, usize::MIN, 0u64, 0usize, 0usize)); @@ -1100,7 +1100,7 @@ impl<'a> AccountsHasher<'a> { let cumulative = CumulativeHashesFromFiles::from_files(hashes); - let _ = self.active_stats.activate(ActiveStatItem::HashMerkleTree); + let _guard = self.active_stats.activate(ActiveStatItem::HashMerkleTree); let mut hash_time = Measure::start("hash"); let (hash, _) = Self::compute_merkle_root_from_slices( cumulative.total_count(),