remove remaining uses of SnapshotStorages (#29660)

This commit is contained in:
Jeff Washington (jwash) 2023-01-11 19:58:14 -06:00 committed by GitHub
parent 14055fc3e2
commit 56f8c16497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ use {
account_storage::AccountStorageMap,
accounts_db::{
AccountShrinkThreshold, AccountsDbConfig, AtomicAppendVecId,
CalcAccountsHashDataSource, SnapshotStorageOne, SnapshotStorages, SnapshotStoragesOne,
CalcAccountsHashDataSource, SnapshotStorageOne, SnapshotStoragesOne,
},
accounts_index::AccountSecondaryIndexes,
accounts_update_notifier_interface::AccountsUpdateNotifier,
@ -908,11 +908,11 @@ pub fn add_bank_snapshot(
})
}
/// serializing needs Vec<Vec<...>>, but data structure at runtime is Vec<...>
/// serializing needs Vec<Vec<SnapshotStorageOne>>, but data structure at runtime is Vec<SnapshotStorageOne>
/// translates to what we need
pub(crate) fn get_storages_to_serialize(
snapshot_storages: &[SnapshotStorageOne],
) -> SnapshotStorages {
) -> Vec<Vec<SnapshotStorageOne>> {
snapshot_storages
.iter()
.map(|storage| vec![Arc::clone(storage)])

View File

@ -9,7 +9,7 @@ use {
},
};
/// Provide access to SnapshotStorageOnes sorted by slot
/// Provide access to SnapshotStorageOnes by slot
pub struct SortedStorages<'a> {
/// range of slots where storages exist (likely sparse)
range: Range<Slot>,