mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-01-11 22:40:22 +00:00
reduce limiter concurrent
This commit is contained in:
parent
3f1624cd8e
commit
0a06018f83
1 changed files with 2 additions and 2 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Reference in a new issue