remove slot lookup (#17691)

This commit is contained in:
Jeff Washington (jwash) 2021-06-02 17:56:19 -05:00 committed by GitHub
parent 83ceedc091
commit 4bd32d891f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -4358,7 +4358,6 @@ impl AccountsDb {
let sub_storages = snapshot_storages.get(slot);
if let Some(sub_storages) = sub_storages {
for storage in sub_storages {
let slot = storage.slot();
let accounts = storage.accounts.accounts(0);
accounts.into_iter().for_each(|stored_account| {
scan_func(LoadedAccount::Stored(stored_account), &mut retval, slot)