mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 11:27:31 -07:00
[backend] Limit user profile mentions queue to a concurrency of 5
This commit is contained in:
parent
8c45d331ef
commit
7c8881f1a8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue