Skip to content

Commit

Permalink
fix initial size
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetmircik committed Apr 13, 2021
1 parent 6a3e604 commit 60b8f32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class ExpirySystem {
private static final int MIN_TOTAL_NUMBER_OF_KEYS_TO_SCAN = 100;
private static final int MAX_SAMPLE_AT_A_TIME = 16;
private static final ThreadLocal<List> BATCH_OF_EXPIRED
= ThreadLocal.withInitial(() -> new ArrayList<>(MAX_SAMPLE_AT_A_TIME));
= ThreadLocal.withInitial(() -> new ArrayList<>(MAX_SAMPLE_AT_A_TIME << 1));

private final long expiryDelayMillis;
private final long expiredKeyScanTimeoutNanos;
Expand Down

0 comments on commit 60b8f32

Please sign in to comment.