Differentiate lock from lookup key
This commit is contained in:
parent
7b3cf0dc95
commit
964e646eeb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue