[backend] Limit user profile mentions queue to a concurrency of 5

This commit is contained in:
Laura Hausmann 2023-10-24 18:28:57 +02:00
parent 8c45d331ef
commit 7c8881f1a8
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -8,7 +8,7 @@ import { unique } from "@/prelude/array.js";
import config from "@/config/index.js";
import { Semaphore } from "async-mutex";
const queue = new Semaphore(10);
const queue = new Semaphore(5);
export const UserProfileRepository = db.getRepository(UserProfile).extend({
// We must never await this without promiseEarlyReturn, otherwise giant webring-style profile mention trees will cause the queue to stop working