remove unnecessary references (#27219)

This commit is contained in:
apfitzge 2022-08-22 20:22:35 -04:00 committed by GitHub
parent a7883c19e9
commit a655d45f3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 {