Skip to content

Commit

Permalink
Uses IntSet for uncleaned slots from visit_duplicate_pubkeys_during_s…
Browse files Browse the repository at this point in the history
…tartup() (#34009)
  • Loading branch information
brooksprumo authored Nov 10, 2023
1 parent ab0cf45 commit 69ab8a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9493,9 +9493,9 @@ impl AccountsDb {
pubkeys: &[Pubkey],
rent_collector: &RentCollector,
timings: &GenerateIndexTimings,
) -> (u64, HashSet<Slot>) {
) -> (u64, IntSet<Slot>) {
let mut accounts_data_len_from_duplicates = 0;
let mut uncleaned_slots = HashSet::<Slot>::default();
let mut uncleaned_slots = IntSet::default();
let mut removed_rent_paying = 0;
let mut removed_top_off = 0;
self.accounts_index.scan(
Expand Down

0 comments on commit 69ab8a8

Please sign in to comment.