lift store.slot() from loop (#20409)
This commit is contained in:
parent
196cc8cfdf
commit
b6a6d6986d
|
@ -5857,9 +5857,10 @@ impl AccountsDb {
|
|||
.into_par_iter()
|
||||
.map(|store| {
|
||||
let accounts = store.all_accounts();
|
||||
let slot = store.slot();
|
||||
accounts
|
||||
.into_iter()
|
||||
.map(|account| (store.slot(), account.meta.pubkey))
|
||||
.map(|account| (slot, account.meta.pubkey))
|
||||
.collect::<HashSet<(Slot, Pubkey)>>()
|
||||
})
|
||||
.reduce(HashSet::new, |mut reduced, store_pubkeys| {
|
||||
|
|
Loading…
Reference in New Issue