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