Skip to content

Commit 8dad0df

Browse files
committed
fix: Amend cache holder map's loadFactor.
1 parent ac6eddd commit 8dad0df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/nstdio/http/ext/LruMultimap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class LruMultimap<K, V> {
3232
private int size;
3333

3434
LruMultimap(int maxSize, Consumer<V> evictListener) {
35-
m = new LinkedHashMap<>(maxSize + 1, 0.75f, true);
35+
m = new LinkedHashMap<>(maxSize + 1, 1.0f, true);
3636
this.maxSize = maxSize;
3737
this.evictListener = evictListener;
3838
}

0 commit comments

Comments
 (0)