fix: lru-cache err
parent
9ef07caf23
commit
273af787c1
|
@ -7,6 +7,9 @@ class ChoiceCache {
|
||||||
constructor () {
|
constructor () {
|
||||||
this.cache = new LRUCache({
|
this.cache = new LRUCache({
|
||||||
maxSize: cacheSize,
|
maxSize: cacheSize,
|
||||||
|
sizeCalculation: () => {
|
||||||
|
return 1
|
||||||
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,9 @@ module.exports = class BaseDNS {
|
||||||
constructor () {
|
constructor () {
|
||||||
this.cache = new LRUCache({
|
this.cache = new LRUCache({
|
||||||
maxSize: cacheSize,
|
maxSize: cacheSize,
|
||||||
|
sizeCalculation: () => {
|
||||||
|
return 1
|
||||||
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue