From 3c5b48d5417e8d6e78507783cee62e9830548778 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 1 Jun 2021 17:04:54 -0500 Subject: decrease the queue intervals by a lot --- src/database.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/database.ts') diff --git a/src/database.ts b/src/database.ts index 661b806..e88614d 100644 --- a/src/database.ts +++ b/src/database.ts @@ -13,9 +13,9 @@ import * as constants from './constants' import { shuffle, sleep } from './util' import * as discord from './discord' import NodeCache from 'node-cache' +import { v4 as uuid4 } from 'uuid' import Queue from 'queue-promise' import { debug } from '.' -import { v4 as uuid4 } from 'uuid' // don't update the user for 3 minutes const recentlyUpdated = new NodeCache({ @@ -653,11 +653,11 @@ export async function updateDatabaseProfile(profile: CleanFullProfile): Promise< export const leaderboardUpdateMemberQueue = new Queue({ concurrent: 1, - interval: 2000 + interval: 100 }) export const leaderboardUpdateProfileQueue = new Queue({ concurrent: 1, - interval: 10000 + interval: 500 }) /** Queue an update for the member's leaderboard data on the server if applicable */ -- cgit