reduce limiter concurrent

This commit is contained in:
TheBeastLT
2024-01-26 00:27:17 +02:00
parent 3f1624cd8e
commit 0a06018f83

View File

@@ -18,8 +18,8 @@ const STALE_ERROR_AGE = 7 * 24 * 60 * 60; // 7 days
const builder = new addonBuilder(dummyManifest());
const limiter = new Bottleneck({
maxConcurrent: process.env.LIMIT_MAX_CONCURRENT || 100,
highWater: process.env.LIMIT_QUEUE_SIZE || 120,
maxConcurrent: process.env.LIMIT_MAX_CONCURRENT || 40,
highWater: process.env.LIMIT_QUEUE_SIZE || 60,
strategy: Bottleneck.strategy.OVERFLOW
});
const limiterOptions = { expiration: 2 * 60 * 1000 }