This commit is contained in:
Greg Fitzgerald
2021-03-02 06:36:49 -08:00
committed by GitHub
parent d73af9c1dd
commit 2463cc1e6a
8 changed files with 16 additions and 18 deletions

View File

@@ -58,8 +58,8 @@ impl SlotCacheInner {
self.cache
.get(pubkey)
// 1) Maybe can eventually use a Cow to avoid a clone on every read
// 2) Popping is only safe if its guaranteed only replay/banking threads
// are reading from the AccountsDb
// 2) Popping is only safe if it's guaranteed that only
// replay/banking threads are reading from the AccountsDb
.map(|account_ref| account_ref.value().clone())
}