remove unnecessary references (#27219)
This commit is contained in:
parent
a7883c19e9
commit
a655d45f3a
|
@ -322,7 +322,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
|
|||
callback(Some(entry)).1
|
||||
} else {
|
||||
// not in cache, look on disk
|
||||
let stats = &self.stats();
|
||||
let stats = self.stats();
|
||||
let disk_entry = self.load_account_entry_from_disk(pubkey);
|
||||
if disk_entry.is_none() {
|
||||
return callback(None).1;
|
||||
|
@ -530,7 +530,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
|
|||
}
|
||||
|
||||
fn update_entry_stats(&self, stopped_measure: Measure, found: bool) {
|
||||
let stats = &self.stats();
|
||||
let stats = self.stats();
|
||||
let (count, time) = if found {
|
||||
(&stats.entries_from_mem, &stats.entry_mem_us)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue