Skip to content

Commit

Permalink
feat: pass redis to bottleneck to fix require
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarMulder committed Jun 17, 2023
1 parent fade598 commit f3c8fcb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Bottleneck from "bottleneck";
import fetch, { Response } from 'node-fetch';
import NodeCache from 'node-cache';
import redis from 'redis';

interface AccessTokenInfo {
access_token: AccessToken
Expand Down Expand Up @@ -402,6 +403,7 @@ class Fast42 {
port: redisConfig.port,
password: redisConfig.password,
},
Redis: redis,

// Hourly rate limit
reservoir: limit.hourly_remaining,
Expand Down

0 comments on commit f3c8fcb

Please sign in to comment.