change mutex key

This commit is contained in:
Namekuji 2023-07-01 02:53:08 -04:00
parent 38d4d34713
commit 4bf1dbbd83
No known key found for this signature in database
GPG key ID: 1D62332C07FBA532

View file

@ -480,7 +480,7 @@ export default async (
noteToPublish = note; noteToPublish = note;
} }
const lock = new Mutex(redisClient, "publishedNote:lock"); const lock = new Mutex(redisClient, "publishedNote");
await lock.acquire(); await lock.acquire();
try { try {
const exists = (await redisClient.exists(publishKey)) > 0; const exists = (await redisClient.exists(publishKey)) > 0;