mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
change mutex key
This commit is contained in:
parent
1f974c0c13
commit
d772da4bc4
@ -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