Skip to content

Commit

Permalink
Remove redundant duplicate expression
Browse files Browse the repository at this point in the history
  • Loading branch information
dmakarov committed Jul 26, 2024
1 parent 23a0cee commit f81e21b
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3068,18 +3068,15 @@ impl AccountsDb {
dirty_store_routine();
});
}
trace!(
"dirty_stores.len: {} pubkeys.len: {}",
dirty_stores_len,
pubkeys
.iter()
.map(|x| x.read().unwrap().len())
.sum::<usize>(),
);
timings.dirty_pubkeys_count = pubkeys
.iter()
.map(|x| x.read().unwrap().len())
.sum::<usize>() as u64;
trace!(
"dirty_stores.len: {} pubkeys.len: {}",
dirty_stores_len,
timings.dirty_pubkeys_count,
);
dirty_store_processing_time.stop();
timings.dirty_store_processing_us += dirty_store_processing_time.as_us();
timings.dirty_ancient_stores = dirty_ancient_stores.load(Ordering::Relaxed);
Expand Down

0 comments on commit f81e21b

Please sign in to comment.