Skip to content

Commit

Permalink
Comment out shrink_to_fit for header_map's MemoryMap
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Jan 17, 2024
1 parent de45028 commit 39bd509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/src/types/header_map/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl MemoryMap {
pub(crate) fn remove(&self, key: &Byte32) -> Option<HeaderIndexView> {
let mut guard = self.0.write();
let ret = guard.remove(key);
// shrink_to_fit!(guard, SHRINK_THRESHOLD);
shrink_to_fit!(guard, SHRINK_THRESHOLD);
ret.map(|inner| (key.clone(), inner).into())
}

Expand Down

0 comments on commit 39bd509

Please sign in to comment.