Skip to content

Commit

Permalink
fix: Amend cache holder map's loadFactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
nstdio committed Sep 4, 2022
1 parent ac6eddd commit 8dad0df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/github/nstdio/http/ext/LruMultimap.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class LruMultimap<K, V> {
private int size;

LruMultimap(int maxSize, Consumer<V> evictListener) {
m = new LinkedHashMap<>(maxSize + 1, 0.75f, true);
m = new LinkedHashMap<>(maxSize + 1, 1.0f, true);
this.maxSize = maxSize;
this.evictListener = evictListener;
}
Expand Down

0 comments on commit 8dad0df

Please sign in to comment.