diff --git a/runtime/src/accounts_index.rs b/runtime/src/accounts_index.rs index c4e8ec9a60..c7d7dce9eb 100644 --- a/runtime/src/accounts_index.rs +++ b/runtime/src/accounts_index.rs @@ -498,7 +498,7 @@ pub struct AccountsIndexIterator<'a, T: IndexValue> { impl<'a, T: IndexValue> AccountsIndexIterator<'a, T> { fn range( - map: &AccountMapsReadLock, + map: &AccountMaps, range: R, collect_all_unsorted: bool, ) -> Vec<(Pubkey, AccountMapEntry)> @@ -637,7 +637,7 @@ pub trait ZeroLamport { type MapType = AccountMap; type LockMapType = Vec>; type LockMapTypeSlice = [MapType]; -type AccountMapsReadLock<'a, T> = &'a MapType; +type AccountMaps<'a, T> = &'a MapType; #[derive(Debug, Default)] pub struct ScanSlotTracker { @@ -1121,7 +1121,7 @@ impl AccountsIndex { pub fn get_account_read_entry_with_lock( &self, pubkey: &Pubkey, - lock: &AccountMapsReadLock<'_, T>, + lock: &AccountMaps<'_, T>, ) -> Option> { lock.get(pubkey) .map(ReadAccountMapEntry::from_account_map_entry) @@ -1539,7 +1539,7 @@ impl AccountsIndex { ); } - pub(crate) fn get_bin(&self, pubkey: &Pubkey) -> AccountMapsReadLock { + pub(crate) fn get_bin(&self, pubkey: &Pubkey) -> AccountMaps { &self.account_maps[self.bin_calculator.bin_from_pubkey(pubkey)] }