Skip to content

Commit

Permalink
generate index: fn arg: &Slot -> Slot (solana-labs#33229)
Browse files Browse the repository at this point in the history
fn arg: &Slot -> Slot
  • Loading branch information
jeffwashington authored Sep 13, 2023
1 parent c2bf2a9 commit 602f0f6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 602f0f6

Please sign in to comment.