Removes get_account_read_entry_with_lock() (#35240)
This commit is contained in:
parent
4905076fb6
commit
db2071a225
|
@ -1126,14 +1126,6 @@ impl<T: IndexValue, U: DiskIndexValue + From<T> + Into<T>> AccountsIndex<T, U> {
|
||||||
|
|
||||||
pub fn get_account_read_entry(&self, pubkey: &Pubkey) -> Option<ReadAccountMapEntry<T>> {
|
pub fn get_account_read_entry(&self, pubkey: &Pubkey) -> Option<ReadAccountMapEntry<T>> {
|
||||||
let lock = self.get_bin(pubkey);
|
let lock = self.get_bin(pubkey);
|
||||||
self.get_account_read_entry_with_lock(pubkey, &lock)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn get_account_read_entry_with_lock(
|
|
||||||
&self,
|
|
||||||
pubkey: &Pubkey,
|
|
||||||
lock: &AccountMaps<'_, T, U>,
|
|
||||||
) -> Option<ReadAccountMapEntry<T>> {
|
|
||||||
lock.get(pubkey)
|
lock.get(pubkey)
|
||||||
.map(ReadAccountMapEntry::from_account_map_entry)
|
.map(ReadAccountMapEntry::from_account_map_entry)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue