mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-12-01 14:27:33 -07:00
change mutex key
This commit is contained in:
parent
1f974c0c13
commit
d772da4bc4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue