diff options
author | mat <github@matdoes.dev> | 2021-10-03 12:12:36 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-10-03 12:12:36 -0500 |
commit | 76339c5b0d6958c757cad4f4a3277eb4f0edadf2 (patch) | |
tree | 34a69b018ae9ba16d35cb559f56c6cbafa860b2f | |
parent | 7afe165979419f1fd96f6356f32ded35cb143de9 (diff) | |
download | skyblock-api-76339c5b0d6958c757cad4f4a3277eb4f0edadf2.tar.gz skyblock-api-76339c5b0d6958c757cad4f4a3277eb4f0edadf2.tar.bz2 skyblock-api-76339c5b0d6958c757cad4f4a3277eb4f0edadf2.zip |
remove some comments from the previous commit
-rw-r--r-- | build/hypixelCached.js | 5 | ||||
-rw-r--r-- | src/hypixelCached.ts | 7 |
2 files changed, 3 insertions, 9 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, diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index a80f4d2..23fc15e 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -10,11 +10,10 @@ 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 */ +/** uuid: username */ export const usernameCache = new NodeCache({ // stdTTL: 60 * 60 * 4, stdTTL: 60 * 30, @@ -22,9 +21,7 @@ export const usernameCache = new NodeCache({ 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({ |