From 98e9b6e70b7cdf872161a566c63ff28138a2ba68 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 9 Jun 2021 08:38:04 +0000 Subject: [PATCH] refactor: create type (#17818) (#17848) (cherry picked from commit 576e3d95f74d68784390592b2754d66e0e677a14) Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com> --- runtime/src/accounts_db.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 48265359af..9696ebf1e9 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -765,11 +765,13 @@ struct RemoveUnrootedSlotsSynchronization { signal: Condvar, } +type AccountInfoAccountsIndex = AccountsIndex; + // 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, + pub accounts_index: AccountInfoAccountsIndex, pub storage: AccountStorage,