Ver código fonte

Fixes the accounts read cache's entry size (#7573)

Brooks 3 meses atrás
pai
commit
0aed0c510a
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      accounts-db/src/read_only_accounts_cache.rs

+ 1 - 1
accounts-db/src/read_only_accounts_cache.rs

@@ -27,7 +27,7 @@ use {
 
 #[cfg_attr(feature = "dev-context-only-utils", qualifiers(pub))]
 const CACHE_ENTRY_SIZE: usize =
-    std::mem::size_of::<ReadOnlyAccountCacheEntry>() + 2 * std::mem::size_of::<ReadOnlyCacheKey>();
+    size_of::<ReadOnlyAccountCacheEntry>() + size_of::<ReadOnlyCacheKey>();
 
 type ReadOnlyCacheKey = Pubkey;