diff --git a/runtime/src/in_mem_accounts_index.rs b/runtime/src/in_mem_accounts_index.rs index 9711c48164..1412ed5b25 100644 --- a/runtime/src/in_mem_accounts_index.rs +++ b/runtime/src/in_mem_accounts_index.rs @@ -80,7 +80,7 @@ impl InMemAccountsIndex { let m = Measure::start("entry"); let mut map = self.map().write().unwrap(); let entry = map.entry(pubkey); - let stats = &self.storage.stats; + let stats = &self.stats(); let (count, time) = if matches!(entry, Entry::Occupied(_)) { (&stats.entries_from_mem, &stats.entry_mem_us) } else { @@ -109,7 +109,7 @@ impl InMemAccountsIndex { let m = Measure::start("entry"); let mut map = self.map().write().unwrap(); let entry = map.entry(*pubkey); - let stats = &self.storage.stats; + let stats = &self.stats(); let (count, time) = if matches!(entry, Entry::Occupied(_)) { (&stats.entries_from_mem, &stats.entry_mem_us) } else { @@ -232,7 +232,7 @@ impl InMemAccountsIndex { let m = Measure::start("entry"); let mut map = self.map().write().unwrap(); let entry = map.entry(pubkey); - let stats = &self.storage.stats; + let stats = &self.stats(); let (count, time) = if matches!(entry, Entry::Occupied(_)) { (&stats.entries_from_mem, &stats.entry_mem_us) } else {