Skip to content

Commit

Permalink
Renames fn to visit_zero_lamport_pubkeys_during_startup() (#3596)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Nov 12, 2024
1 parent 2c819d0 commit 6bdf120
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8961,9 +8961,9 @@ impl AccountsDb {

let zero_lamport_pubkeys_to_visit =
std::mem::take(&mut *zero_lamport_pubkeys.lock().unwrap());
let (num_zero_lamport_single_refs, visit_zero_lamports_us) = measure_us!(
self.visit_zero_pubkeys_during_startup(&zero_lamport_pubkeys_to_visit)
);
let (num_zero_lamport_single_refs, visit_zero_lamports_us) =
measure_us!(self
.visit_zero_lamport_pubkeys_during_startup(&zero_lamport_pubkeys_to_visit));
timings.visit_zero_lamports_us = visit_zero_lamports_us;
timings.num_zero_lamport_single_refs = num_zero_lamport_single_refs;

Expand Down Expand Up @@ -9099,7 +9099,7 @@ impl AccountsDb {
/// Visit zero lamport pubkeys and populate zero_lamport_single_ref info on
/// storage.
/// Returns the number of zero lamport single ref accounts found.
fn visit_zero_pubkeys_during_startup(&self, pubkeys: &HashSet<Pubkey>) -> u64 {
fn visit_zero_lamport_pubkeys_during_startup(&self, pubkeys: &HashSet<Pubkey>) -> u64 {
let mut count = 0;
self.accounts_index.scan(
pubkeys.iter(),
Expand Down

0 comments on commit 6bdf120

Please sign in to comment.