Skip to content

Commit

Permalink
remove unnecessary type
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington committed Jan 2, 2023
1 parent d5fdb7b commit a7d9bcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion runtime/src/account_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub type Offset = usize;
pub type StoredSize = u32;

/// specify where account data is located
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
pub enum StorageLocation {
AppendVec(AppendVecId, Offset),
Cached,
Expand Down
6 changes: 3 additions & 3 deletions runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4894,7 +4894,7 @@ impl AccountsDb {
// If the slot is not in the cache, then all the account information must have
// been flushed. This is guaranteed because we only remove the rooted slot from
// the cache *after* we've finished flushing in `flush_slot_cache`.
let storage_maps: SnapshotStorage = self
let storage_maps = self
.storage
.get_slot_storage_entries(slot)
.unwrap_or_default();
Expand Down Expand Up @@ -8125,7 +8125,7 @@ impl AccountsDb {
pubkeys_removed_from_accounts_index: &PubkeysRemovedFromAccountsIndex,
) {
let mut measure = Measure::start("clean_stored_dead_slots-ms");
let mut stores: SnapshotStorage = vec![];
let mut stores = vec![];
// get all stores in a vec so we can iterate in parallel
for slot in dead_slots.iter() {
if let Some(slot_storage) = self.storage.get_slot_stores(*slot) {
Expand Down Expand Up @@ -8873,7 +8873,7 @@ impl AccountsDb {
.take(per_pass)
.collect::<Vec<_>>();
roots_in_this_pass.into_par_iter().for_each(|slot| {
let storage_maps: SnapshotStorage = self
let storage_maps = self
.storage
.get_slot_storage_entries(*slot)
.unwrap_or_default();
Expand Down

0 comments on commit a7d9bcd

Please sign in to comment.