Skip to content

Commit d567130

Browse files
committed
chore: remove logs, cache is fine
1 parent 33977b7 commit d567130

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

backend/src/dal/leaderboards.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,8 @@ export async function getCount(
7777
): Promise<number> {
7878
const key = `${language}_${mode}_${mode2}`;
7979
if (cachedCounts.has(key)) {
80-
console.log("lb", key, "returning cached count");
8180
return cachedCounts.get(key) as number;
8281
} else {
83-
console.log("lb", key, "getting fresh count");
8482
const count = await getCollection({
8583
language,
8684
mode,
@@ -223,7 +221,6 @@ export async function update(
223221
await db.collection(lbCollectionName).createIndex({ rank: 1 });
224222
const end2 = performance.now();
225223

226-
console.log("lb", `${language}_${mode}_${mode2}`, "deleting count cache");
227224
cachedCounts.delete(`${language}_${mode}_${mode2}`);
228225

229226
//update speedStats

0 commit comments

Comments
 (0)