Skip to content

Commit

Permalink
AccountsCache::store: or_insert => or_insert_with (#3815)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrod authored Nov 29, 2024
1 parent dc57128 commit 79c0fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounts-db/src/accounts_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ impl AccountsCache {
self
.cache
.entry(slot)
.or_insert(self.new_inner())
.or_insert_with(|| self.new_inner())
.clone());

slot_cache.insert(pubkey, account)
Expand Down

0 comments on commit 79c0fe5

Please sign in to comment.