use append vec iter in construct_candidate_clean_keys (#26426)

This commit is contained in:
Jeff Washington (jwash) 2022-07-06 08:49:35 -05:00 committed by GitHub
parent 6f5857a5db
commit 71c7b4f9cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2422,9 +2422,9 @@ impl AccountsDb {
let dirty_stores_len = dirty_stores.len(); let dirty_stores_len = dirty_stores.len();
let pubkeys = DashSet::new(); let pubkeys = DashSet::new();
for (_slot, store) in dirty_stores { for (_slot, store) in dirty_stores {
for account in store.accounts.accounts(0) { AppendVecAccountsIter::new(&store.accounts).for_each(|account| {
pubkeys.insert(account.meta.pubkey); pubkeys.insert(account.meta.pubkey);
} });
} }
trace!( trace!(
"dirty_stores.len: {} pubkeys.len: {}", "dirty_stores.len: {} pubkeys.len: {}",