acctidx renames for clarity (#27606)

This commit is contained in:
Jeff Washington (jwash) 2022-09-06 12:29:45 -07:00 committed by GitHub
parent f1297850b8
commit 0d01494cf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

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