Remove erroneous lock
Lock was acquired here and in the actual method, causing the actual method to wait 10 minutes for the timeout
This commit is contained in:
parent
d0c6e6f411
commit
7124898568
1 changed files with 0 additions and 2 deletions
|
@ -48,9 +48,7 @@ export const ResetAllCounterValuesCmd = typedGuildCommand<CountersPluginType>()(
|
|||
.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`);
|
||||
|
|
Loading…
Add table
Reference in a new issue