mirror of
https://github.com/xHyroM/lighteco.git
synced 2024-11-10 01:18:07 +01:00
fix(ExpiringSet): lifetime must be millis
This commit is contained in:
parent
8112b41d12
commit
9c8e459ca8
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ public class ExpiringSet<T> {
|
|||
this.cache = CacheBuilder.newBuilder()
|
||||
.expireAfterWrite(duration, unit)
|
||||
.build();
|
||||
this.lifetime = duration;
|
||||
this.lifetime = unit.toMillis(duration);
|
||||
}
|
||||
|
||||
public boolean add(T item) {
|
||||
|
|
Loading…
Reference in a new issue