Skip to content

Commit

Permalink
Update runtime/src/accounts_db.rs
Browse files Browse the repository at this point in the history
Co-authored-by: apfitzge <[email protected]>
  • Loading branch information
jeffwashington and apfitzge committed Jan 2, 2023
1 parent a8d8dae commit aed614e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8544,10 +8544,8 @@ impl AccountsDb {
let slots = self
.storage
.iter()
.filter_map(|k| {
let slot = *k.key() as Slot;
requested_slots.contains(&slot).then_some(slot)
})
.map(|k| *k.key() as Slot)
.filter(|slot| requested_slots.contains(slot))
.collect::<Vec<_>>();
m.stop();
let mut m2 = Measure::start("filter");
Expand Down

0 comments on commit aed614e

Please sign in to comment.