aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-05-25 20:23:51 -0500
committermat <github@matdoes.dev>2021-05-25 20:23:51 -0500
commitb71732cb773c42cf690ec0f1999af750d2975603 (patch)
tree77a300e41d8ac68ceb02487a3eddee0d36000306
parent14cb968fe3113ce0980b2feaaa6bf0e0493068d6 (diff)
downloadskyblock-api-b71732cb773c42cf690ec0f1999af750d2975603.tar.gz
skyblock-api-b71732cb773c42cf690ec0f1999af750d2975603.tar.bz2
skyblock-api-b71732cb773c42cf690ec0f1999af750d2975603.zip
remove debug stuff
-rw-r--r--build/hypixelCached.js24
-rw-r--r--src/hypixelCached.ts24
2 files changed, 24 insertions, 24 deletions
diff --git a/build/hypixelCached.js b/build/hypixelCached.js
index 72399c8..626aaed 100644
--- a/build/hypixelCached.js
+++ b/build/hypixelCached.js
@@ -31,7 +31,6 @@ const mojang = __importStar(require("./mojang"));
const hypixel = __importStar(require("./hypixel"));
const util_1 = require("./util");
const _1 = require(".");
-const database_1 = require("./database");
// cache usernames for 4 hours
/** uuid: username */
exports.usernameCache = new node_cache_1.default({
@@ -345,14 +344,15 @@ async function fetchProfileName(user, profile) {
return profileName;
}
exports.fetchProfileName = fetchProfileName;
-setInterval(() => {
- const keys = exports.basicPlayerCache.keys();
- if (keys)
- console.log(exports.basicPlayerCache.get(keys[keys.length - 1]));
- console.log('basicPlayerCache', exports.basicPlayerCache.getStats());
- console.log('usernameCache', exports.usernameCache.getStats());
- console.log('profileCache', exports.profileCache.getStats());
- console.log('cachedRawLeaderboards size', database_1.cachedRawLeaderboards.size);
- console.log(Math.floor((process.memoryUsage().heapUsed / 1024 / 1024) * 10) / 10
- + 'mb');
-}, 60 * 1000);
+// setInterval(() => {
+// const keys = basicPlayerCache.keys()
+// if (keys)
+// console.log(basicPlayerCache.get(keys[keys.length - 1]))
+// console.log('basicPlayerCache', basicPlayerCache.getStats())
+// console.log('usernameCache', usernameCache.getStats())
+// console.log('profileCache', profileCache.getStats())
+// console.log('cachedRawLeaderboards size', cachedRawLeaderboards.size)
+// console.log(
+// Math.floor((process.memoryUsage().heapUsed / 1024 / 1024) * 10) / 10
+// + 'mb')
+// }, 60 * 1000)
diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts
index 47cf088..9bfd97e 100644
--- a/src/hypixelCached.ts
+++ b/src/hypixelCached.ts
@@ -372,15 +372,15 @@ export async function fetchProfileName(user: string, profile: string): Promise<s
return profileName
}
-setInterval(() => {
- const keys = basicPlayerCache.keys()
- if (keys)
- console.log(basicPlayerCache.get(keys[keys.length - 1]))
- console.log('basicPlayerCache', basicPlayerCache.getStats())
- console.log('usernameCache', usernameCache.getStats())
- console.log('profileCache', profileCache.getStats())
- console.log('cachedRawLeaderboards size', cachedRawLeaderboards.size)
- console.log(
- Math.floor((process.memoryUsage().heapUsed / 1024 / 1024) * 10) / 10
- + 'mb')
-}, 60 * 1000) \ No newline at end of file
+// setInterval(() => {
+ // const keys = basicPlayerCache.keys()
+ // if (keys)
+ // console.log(basicPlayerCache.get(keys[keys.length - 1]))
+ // console.log('basicPlayerCache', basicPlayerCache.getStats())
+ // console.log('usernameCache', usernameCache.getStats())
+ // console.log('profileCache', profileCache.getStats())
+ // console.log('cachedRawLeaderboards size', cachedRawLeaderboards.size)
+ // console.log(
+ // Math.floor((process.memoryUsage().heapUsed / 1024 / 1024) * 10) / 10
+ // + 'mb')
+// }, 60 * 1000) \ No newline at end of file