fix: lru-cache err

pull/396/head
starknt 2024-11-19 00:26:07 +08:00
parent 9ef07caf23
commit 273af787c1
2 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,9 @@ class ChoiceCache {
constructor () {
this.cache = new LRUCache({
maxSize: cacheSize,
sizeCalculation: () => {
return 1
},
})
}

View File

@ -25,6 +25,9 @@ module.exports = class BaseDNS {
constructor () {
this.cache = new LRUCache({
maxSize: cacheSize,
sizeCalculation: () => {
return 1
},
})
}