reduce rd timeout and increase concurrency

This commit is contained in:
TheBeastLT
2024-01-15 00:24:48 +02:00
parent 087ea37c2a
commit a1f2f2a9f1
3 changed files with 3 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ Object.values(MochOptions)
.map(moch => moch.key)
.forEach(mochKey => unrestrictQueues[mochKey] = new namedQueue((task, callback) => task.method()
.then(result => callback(false, result))
.catch((error => callback(error))), 20));
.catch((error => callback(error))), 40));
export function hasMochConfigured(config) {
return Object.keys(MochOptions).find(moch => config?.[moch])

View File

@@ -395,5 +395,5 @@ function infringingFile(error) {
}
async function getDefaultOptions(ip) {
return { ip, timeout: 10000 };
return { ip, timeout: 5000 };
}