aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/hypixelCached.js1
-rw-r--r--src/hypixelCached.ts2
2 files changed, 3 insertions, 0 deletions
diff --git a/build/hypixelCached.js b/build/hypixelCached.js
index 23c186d..a922b92 100644
--- a/build/hypixelCached.js
+++ b/build/hypixelCached.js
@@ -39,6 +39,7 @@ exports.usernameCache = new node_cache_1.default({
checkperiod: 60,
useClones: false,
});
+exports.usernameCache.setMaxListeners(20);
exports.basicProfilesCache = new node_cache_1.default({
stdTTL: 60 * 10,
checkperiod: 60,
diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts
index ed79e2d..d9e718e 100644
--- a/src/hypixelCached.ts
+++ b/src/hypixelCached.ts
@@ -20,6 +20,8 @@ export const usernameCache = new NodeCache({
useClones: false,
})
+usernameCache.setMaxListeners(20)
+
export const basicProfilesCache = new NodeCache({
stdTTL: 60 * 10,
checkperiod: 60,