From f7f6fc046f46e1d7d5611b7bf352a1f549489d90 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 10 Apr 2022 20:22:07 -0500 Subject: Increase concurrency on member leaderboard queue --- src/database.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/database.ts') diff --git a/src/database.ts b/src/database.ts index 2944728..6e37d5f 100644 --- a/src/database.ts +++ b/src/database.ts @@ -778,13 +778,13 @@ export async function updateDatabaseMember(member: CleanMember, profile: CleanFu if (debug) console.debug('adding member to leaderboards', member.username) if (member.rawHypixelStats) - await constants.addStats(Object.keys(member.rawHypixelStats)) - await constants.addCollections(member.collections.map(coll => coll.name)) - await constants.addSkills(member.skills.map(skill => skill.name)) - await constants.addZones(member.zones.map(zone => zone.name)) - await constants.addSlayers(member.slayers.bosses.map(s => s.rawName)) - await constants.addPets(member.pets.list.map(s => s.id)) - await constants.addHarpSongs(member.harp.songs.map(s => s.id)) + constants.addStats(Object.keys(member.rawHypixelStats)) + constants.addCollections(member.collections.map(coll => coll.name)) + constants.addSkills(member.skills.map(skill => skill.name)) + constants.addZones(member.zones.map(zone => zone.name)) + constants.addSlayers(member.slayers.bosses.map(s => s.rawName)) + constants.addPets(member.pets.list.map(s => s.id)) + constants.addHarpSongs(member.harp.songs.map(s => s.id)) if (debug) console.debug('done constants..') @@ -908,7 +908,7 @@ export async function updateDatabaseProfile(profile: CleanFullProfile): Promise< } export const leaderboardUpdateMemberQueue = new Queue({ - concurrent: 1, + concurrent: 2, interval: 50 }) export const leaderboardUpdateProfileQueue = new Queue({ -- cgit