reduce moch concurrency

This commit is contained in:
TheBeastLT 2025-09-11 16:33:45 +03:00
parent 5a3c85efb4
commit 05e64b4d08
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ export const MochOptions = {
const unrestrictQueues = {}
Object.values(MochOptions)
.map(moch => moch.key)
.forEach(mochKey => unrestrictQueues[mochKey] = createNamedQueue(50));
.forEach(mochKey => unrestrictQueues[mochKey] = createNamedQueue(20));
export function hasMochConfigured(config) {
return Object.keys(MochOptions).find(moch => config?.[moch])

View file

@ -362,5 +362,5 @@ function isTorrentTooBigError(error) {
}
async function getDefaultOptions(ip) {
return { ip, timeout: 15000 };
return { ip, timeout: 10000 };
}