From 47d87a10f90ee06f55ad960d0ba0949e898792a9 Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Wed, 14 Sep 2022 18:14:09 +0200 Subject: [PATCH] increase resolve queue concurrency --- addon/moch/moch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addon/moch/moch.js b/addon/moch/moch.js index fd77b72..9db12e1 100644 --- a/addon/moch/moch.js +++ b/addon/moch/moch.js @@ -11,7 +11,7 @@ const { cacheWrapResolvedUrl } = require('../lib/cache'); const { timeout } = require('../lib/promises'); const { BadTokenError, streamFilename } = require('./mochHelper'); -const RESOLVE_TIMEOUT = 10 * 60 * 1000; // 10 minutes +const RESOLVE_TIMEOUT = 2 * 60 * 1000; // 2 minutes const MIN_API_KEY_SYMBOLS = 15; const TOKEN_BLACKLIST = []; const RESOLVER_HOST = process.env.RESOLVER_HOST || 'http://localhost:7050'; @@ -62,7 +62,7 @@ const MOCHS = { const unrestrictQueue = new namedQueue((task, callback) => task.method() .then(result => callback(false, result)) - .catch((error => callback(error))), 5); + .catch((error => callback(error))), 20); async function applyMochs(streams, config) { if (!streams || !streams.length || !Object.keys(MOCHS).find(moch => config[moch])) {