Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Prev Previous commit
Remove unnecessary muts
  • Loading branch information
koute committed Jan 25, 2023
commit d1557da29f1c0fcbcf4ed141b62442e4bc6e71df
4 changes: 2 additions & 2 deletions primitives/trie/src/cache/shared_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,8 @@ impl<H: Hasher> SharedTrieCache<H> {

// Split our memory budget between what we'll be holding inline in the map,
// and what we'll be holding on the heap.
let mut value_cache_inline_budget = (value_cache_budget as f32 * 0.70) as usize;
let mut node_cache_inline_budget = (node_cache_budget as f32 * 0.70) as usize;
let value_cache_inline_budget = (value_cache_budget as f32 * 0.70) as usize;
let node_cache_inline_budget = (node_cache_budget as f32 * 0.70) as usize;

// Calculate how much memory the maps will be allowed to hold inline given our budget.
let value_cache_max_inline_size =
Expand Down