We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca4c41d commit 6a8549cCopy full SHA for 6a8549c
src/index.ts
@@ -1,4 +1,4 @@
1
-import Bottleneck from "bottleneck";
+import Bottleneck from "@sergiiivzhenko/bottleneck";
2
import fetch, { Response } from 'node-fetch';
3
import NodeCache from 'node-cache';
4
import redis from 'redis';
@@ -392,7 +392,6 @@ class Fast42 {
392
}
393
394
private createRedisLimiter(limit: RateLimit, concurrentOffset: number, redisConfig: RedisConfig): Bottleneck {
395
-
396
const limiter = new Bottleneck({
397
// Redis options
398
id: 'fast42',
@@ -404,7 +403,7 @@ class Fast42 {
404
403
password: redisConfig.password,
405
},
406
Redis: redis,
407
+
408
// Hourly rate limit
409
reservoir: limit.hourly_remaining,
410
reservoirRefreshAmount: limit.hourly_limit,
0 commit comments