change mutex key
This commit is contained in:
parent
38d4d34713
commit
4bf1dbbd83
@ -480,7 +480,7 @@ export default async (
|
||||
noteToPublish = note;
|
||||
}
|
||||
|
||||
const lock = new Mutex(redisClient, "publishedNote:lock");
|
||||
const lock = new Mutex(redisClient, "publishedNote");
|
||||
await lock.acquire();
|
||||
try {
|
||||
const exists = (await redisClient.exists(publishKey)) > 0;
|
||||
|
Loading…
Reference in New Issue
Block a user