mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 13:05:36 +00:00
update concurrency
This commit is contained in:
parent
1a86603bdf
commit
08c29c8e82
2 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ const STALE_ERROR_AGE = 7 * 24 * 60 * 60; // 7 days
|
|||
|
||||
const builder = new addonBuilder(dummyManifest());
|
||||
const requestQueue = createNamedQueue(Infinity);
|
||||
const newLimiter = pLimit(30)
|
||||
const newLimiter = pLimit(50)
|
||||
|
||||
builder.defineStreamHandler((args) => {
|
||||
if (!args.id.match(/tt\d+/i) && !args.id.match(/kitsu:\d+/i)) {
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ export const MochOptions = {
|
|||
const unrestrictQueues = {}
|
||||
Object.values(MochOptions)
|
||||
.map(moch => moch.key)
|
||||
.forEach(mochKey => unrestrictQueues[mochKey] = createNamedQueue(20));
|
||||
.forEach(mochKey => unrestrictQueues[mochKey] = createNamedQueue(40));
|
||||
|
||||
export function hasMochConfigured(config) {
|
||||
return Object.keys(MochOptions).find(moch => config?.[moch])
|
||||
|
|
|
|||
Loading…
Reference in a new issue