Skip to content

Commit f3c8fcb

Browse files
committed
feat: pass redis to bottleneck to fix require
1 parent fade598 commit f3c8fcb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Bottleneck from "bottleneck";
22
import fetch, { Response } from 'node-fetch';
33
import NodeCache from 'node-cache';
4+
import redis from 'redis';
45

56
interface AccessTokenInfo {
67
access_token: AccessToken
@@ -402,6 +403,7 @@ class Fast42 {
402403
port: redisConfig.port,
403404
password: redisConfig.password,
404405
},
406+
Redis: redis,
405407

406408
// Hourly rate limit
407409
reservoir: limit.hourly_remaining,

0 commit comments

Comments
 (0)