File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 11import Bottleneck from "bottleneck" ;
22import fetch , { Response } from 'node-fetch' ;
33import NodeCache from 'node-cache' ;
4- import { createClient } from "redis" ;
54
65interface AccessTokenInfo {
76 access_token : AccessToken
@@ -392,14 +391,6 @@ class Fast42 {
392391 }
393392
394393 private createRedisLimiter ( limit : RateLimit , concurrentOffset : number , redisConfig : RedisConfig ) : Bottleneck {
395- // Create a redis client
396- // const client = createClient(redisConfig.port, redisConfig.host, {
397- // password: redisConfig.password,
398- // });
399-
400- // client.on('error', function (err) {
401- // console.log('Redis client encountered an error: ', err);
402- // });
403394
404395 const limiter = new Bottleneck ( {
405396 // Redis options
You can’t perform that action at this time.
0 commit comments