Skip to content

Commit d1c4ce7

Browse files
committed
fixup
1 parent b9c60d3 commit d1c4ce7

File tree

1 file changed

+1
-1
lines changed
  • turbopack/crates/turbo-persistence/src

1 file changed

+1
-1
lines changed

turbopack/crates/turbo-persistence/src/db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ impl<S: ParallelScheduler, const FAMILIES: usize> TurboPersistence<S, FAMILIES>
469469
let set = &inner.accessed_key_hashes[family as usize];
470470
// len is only a snapshot at that time and it can change while we create the filter.
471471
// So we give it 5% more space to make resizes less likely.
472-
let initial_capacity = set.len() * 19 / 20;
472+
let initial_capacity = set.len() * 20 / 19;
473473
let mut amqf =
474474
qfilter::Filter::with_fingerprint_size(initial_capacity as u64, u64::BITS as u8)
475475
.unwrap();

0 commit comments

Comments
 (0)