From 7124898568073e2d3b3a422b859a89da0b062c0a Mon Sep 17 00:00:00 2001 From: Dark <7890309+DarkView@users.noreply.github.com> Date: Thu, 3 Jun 2021 02:34:06 +0200 Subject: [PATCH] Remove erroneous lock Lock was acquired here and in the actual method, causing the actual method to wait 10 minutes for the timeout --- .../src/plugins/Counters/commands/ResetAllCounterValuesCmd.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/src/plugins/Counters/commands/ResetAllCounterValuesCmd.ts b/backend/src/plugins/Counters/commands/ResetAllCounterValuesCmd.ts index 2b16f10b..021c93c3 100644 --- a/backend/src/plugins/Counters/commands/ResetAllCounterValuesCmd.ts +++ b/backend/src/plugins/Counters/commands/ResetAllCounterValuesCmd.ts @@ -48,9 +48,7 @@ export const ResetAllCounterValuesCmd = typedGuildCommand()( .send(`Resetting counter **${counterName}**. This might take a while. Please don't reload the config.`) .catch(() => null); - const lock = await pluginData.locks.acquire(counterIdLock(counterId), 10 * MINUTES); await resetAllCounterValues(pluginData, args.counterName); - lock.interrupt(); loadingMessage?.delete().catch(noop); sendSuccessMessage(pluginData, message.channel, `All counter values for **${counterName}** have been reset`);