diff options
author | mat <github@matdoes.dev> | 2021-07-13 04:46:27 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-07-13 04:46:27 -0500 |
commit | 956172c785cae078012f82733f8188ece8f59696 (patch) | |
tree | 2067497b232ca31e12b0ec9fc5a1c381dbd45c79 /src | |
parent | 05a189a374d40a9e3054d85d6e397d748b5664f5 (diff) | |
download | skyblock-api-956172c785cae078012f82733f8188ece8f59696.tar.gz skyblock-api-956172c785cae078012f82733f8188ece8f59696.tar.bz2 skyblock-api-956172c785cae078012f82733f8188ece8f59696.zip |
increase max listeners because what could go wrong
Diffstat (limited to 'src')
-rw-r--r-- | src/hypixelCached.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index 4aa96ef..b0fc1db 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -21,7 +21,7 @@ export const usernameCache = new NodeCache({ useClones: false, }) -usernameCache.setMaxListeners(20) +usernameCache.setMaxListeners(50) export const basicProfilesCache = new NodeCache({ stdTTL: 60 * 10, @@ -260,7 +260,7 @@ async function fetchBasicProfiles(user: string): Promise<CleanBasicProfile[] | n const player = await fetchPlayer(playerUuid) if (!player) { - console.log('bruh playerUuid', user) + console.log('bruh playerUuid', user, playerUuid) return [] } const profiles = player.profiles |