From 05e64b4d089ad16bc68a2c41ae4f6c903856dc91 Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Thu, 11 Sep 2025 16:33:45 +0300 Subject: [PATCH] reduce moch concurrency --- addon/moch/moch.js | 2 +- addon/moch/realdebrid.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addon/moch/moch.js b/addon/moch/moch.js index 1481eb4..36d4351 100644 --- a/addon/moch/moch.js +++ b/addon/moch/moch.js @@ -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]) diff --git a/addon/moch/realdebrid.js b/addon/moch/realdebrid.js index 4e16b9b..6906357 100644 --- a/addon/moch/realdebrid.js +++ b/addon/moch/realdebrid.js @@ -362,5 +362,5 @@ function isTorrentTooBigError(error) { } async function getDefaultOptions(ip) { - return { ip, timeout: 15000 }; + return { ip, timeout: 10000 }; }