From 602f0f6ecbad9ad61b9ad907fc736a405faaf289 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Wed, 13 Sep 2023 14:14:30 -0700 Subject: [PATCH] generate index: fn arg: &Slot -> Slot (#33229) fn arg: &Slot -> Slot --- accounts-db/src/accounts_db.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/accounts-db/src/accounts_db.rs b/accounts-db/src/accounts_db.rs index 76791bf28..b97f838b5 100644 --- a/accounts-db/src/accounts_db.rs +++ b/accounts-db/src/accounts_db.rs @@ -8949,7 +8949,7 @@ impl AccountsDb { fn generate_index_for_slot( &self, accounts_map: GenerateIndexAccountsMap<'_>, - slot: &Slot, + slot: Slot, store_id: AppendVecId, rent_collector: &RentCollector, storage_info: &StorageSizeAndCountMap, @@ -9001,7 +9001,7 @@ impl AccountsDb { let (dirty_pubkeys, insert_time_us) = self .accounts_index - .insert_new_if_missing_into_primary_index(*slot, num_accounts, items); + .insert_new_if_missing_into_primary_index(slot, num_accounts, items); { // second, collect into the shared DashMap once we've figured out all the info per store_id @@ -9014,7 +9014,7 @@ impl AccountsDb { // a given pubkey. If there is just a single item, there is no cleaning to // be done on that pubkey. Use only those pubkeys with multiple updates. if !dirty_pubkeys.is_empty() { - self.uncleaned_pubkeys.insert(*slot, dirty_pubkeys); + self.uncleaned_pubkeys.insert(slot, dirty_pubkeys); } SlotIndexGenerationInfo { insert_time_us, @@ -9196,7 +9196,7 @@ impl AccountsDb { rent_paying_accounts_by_partition_this_slot, } = self.generate_index_for_slot( accounts_map, - slot, + *slot, store_id, &rent_collector, &storage_info, @@ -15752,7 +15752,7 @@ pub mod tests { let accounts_map = accounts.process_storage_slot(&storage); accounts.generate_index_for_slot( accounts_map, - &slot0, + slot0, 0, &RentCollector::default(), &storage_info, @@ -15776,7 +15776,7 @@ pub mod tests { let accounts_map = accounts.process_storage_slot(&storage); accounts.generate_index_for_slot( accounts_map, - &0, + 0, 0, &RentCollector::default(), &storage_info, @@ -15824,7 +15824,7 @@ pub mod tests { let accounts_map = accounts.process_storage_slot(&storage); accounts.generate_index_for_slot( accounts_map, - &0, + 0, 0, &RentCollector::default(), &storage_info,