From 964e646eeb3224a3778bb0a3b24f503f81e9f501 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Tue, 3 May 2022 01:16:21 -0600 Subject: [PATCH] Differentiate lock from lookup key --- jarvis/utils/cogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jarvis/utils/cogs.py b/jarvis/utils/cogs.py index 1675a58..49f4d7a 100644 --- a/jarvis/utils/cogs.py +++ b/jarvis/utils/cogs.py @@ -70,7 +70,7 @@ class ModcaseCog(Cog): lookup_key = f"{user.id}|{ctx.guild.id}" - async with self.bot.redis.lock(lookup_key): + async with self.bot.redis.lock("lock|" + lookup_key): if await self.bot.redis.get(lookup_key): self.logger.debug(f"User {user.id} in {ctx.guild.id} already has pending case") return