mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-17 22:29:52 +08:00
chore: remove logs, cache is fine
This commit is contained in:
parent
33977b71e6
commit
d567130053
1 changed files with 0 additions and 3 deletions
|
|
@ -77,10 +77,8 @@ export async function getCount(
|
|||
): Promise<number> {
|
||||
const key = `${language}_${mode}_${mode2}`;
|
||||
if (cachedCounts.has(key)) {
|
||||
console.log("lb", key, "returning cached count");
|
||||
return cachedCounts.get(key) as number;
|
||||
} else {
|
||||
console.log("lb", key, "getting fresh count");
|
||||
const count = await getCollection({
|
||||
language,
|
||||
mode,
|
||||
|
|
@ -223,7 +221,6 @@ export async function update(
|
|||
await db.collection(lbCollectionName).createIndex({ rank: 1 });
|
||||
const end2 = performance.now();
|
||||
|
||||
console.log("lb", `${language}_${mode}_${mode2}`, "deleting count cache");
|
||||
cachedCounts.delete(`${language}_${mode}_${mode2}`);
|
||||
|
||||
//update speedStats
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue