Skip to content

Commit

Permalink
pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington committed Jan 3, 2023
1 parent 4d4fe97 commit 765bec6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1196,13 +1196,11 @@ impl RecycleStores {
}

fn add_entries(&mut self, new_entries: SnapshotStorage) {
let mut total_bytes = 0;
let now = Instant::now();
for new_entry in new_entries {
total_bytes += new_entry.total_bytes();
self.total_bytes += new_entry.total_bytes();
self.entries.push((now, new_entry));
}
self.total_bytes += total_bytes;
}

fn expire_old_entries(&mut self) -> SnapshotStorage {
Expand Down

0 comments on commit 765bec6

Please sign in to comment.