mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-01-11 22:40:22 +00:00
reduce moch concurrency
This commit is contained in:
parent
5a3c85efb4
commit
05e64b4d08
2 changed files with 2 additions and 2 deletions
|
|
@ -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])
|
||||
|
|
|
|||
|
|
@ -362,5 +362,5 @@ function isTorrentTooBigError(error) {
|
|||
}
|
||||
|
||||
async function getDefaultOptions(ip) {
|
||||
return { ip, timeout: 15000 };
|
||||
return { ip, timeout: 10000 };
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue