diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/hypixelCached.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/build/hypixelCached.js b/build/hypixelCached.js index 8018dc4..69bcc62 100644 --- a/build/hypixelCached.js +++ b/build/hypixelCached.js @@ -7,7 +7,6 @@ import * as mojang from './mojang.js'; import NodeCache from 'node-cache'; import { debug } from './index.js'; import LRUCache from 'lru-cache'; -// import { TLSSocket } from 'tls' // cache usernames for 30 minutes /** uuid: username */ export const usernameCache = new NodeCache({ @@ -16,9 +15,7 @@ export const usernameCache = new NodeCache({ checkperiod: 60, useClones: false, }); -// usernameCache.setMaxListeners(50) -// // @ts-ignore for some reason the typings don't have setMaxListeners but it does -// TLSSocket.setMaxListeners(50) +usernameCache.setMaxListeners(50); export const basicProfilesCache = new NodeCache({ stdTTL: 60 * 10, checkperiod: 60, |