mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-30 15:58:05 +09:00
[backend] Limit user profile mentions queue to a concurrency of 5
This commit is contained in:
parent
8c45d331ef
commit
7c8881f1a8
@ -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 New Issue
Block a user