refactor: create type (#17818)

This commit is contained in:
Jeff Washington (jwash) 2021-06-08 14:49:08 -06:00 committed by GitHub
parent 2a9b127029
commit 576e3d95f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -765,11 +765,13 @@ struct RemoveUnrootedSlotsSynchronization {
signal: Condvar,
}
type AccountInfoAccountsIndex = AccountsIndex<AccountInfo>;
// This structure handles the load/store of the accounts
#[derive(Debug)]
pub struct AccountsDb {
/// Keeps tracks of index into AppendVec on a per slot basis
pub accounts_index: AccountsIndex<AccountInfo>,
pub accounts_index: AccountInfoAccountsIndex,
pub storage: AccountStorage,