Skip to content

Commit 6a8549c

Browse files
committed
fix: correct import
1 parent ca4c41d commit 6a8549c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Bottleneck from "bottleneck";
1+
import Bottleneck from "@sergiiivzhenko/bottleneck";
22
import fetch, { Response } from 'node-fetch';
33
import NodeCache from 'node-cache';
44
import redis from 'redis';
@@ -392,7 +392,6 @@ class Fast42 {
392392
}
393393

394394
private createRedisLimiter(limit: RateLimit, concurrentOffset: number, redisConfig: RedisConfig): Bottleneck {
395-
396395
const limiter = new Bottleneck({
397396
// Redis options
398397
id: 'fast42',
@@ -404,7 +403,7 @@ class Fast42 {
404403
password: redisConfig.password,
405404
},
406405
Redis: redis,
407-
406+
408407
// Hourly rate limit
409408
reservoir: limit.hourly_remaining,
410409
reservoirRefreshAmount: limit.hourly_limit,

0 commit comments

Comments
 (0)