Skip to content

Commit

Permalink
fix: really connect to the correct host now
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarMulder committed Jun 16, 2023
1 parent 9e74306 commit c282445
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class Fast42 {

public async disconnect() {
return Promise.all(this._limiterPairs.map(async (limiterPair) => {
return limiterPair.limiter.disconnect()
return limiterPair.limiter.disconnect(true)
}))
}

Expand Down Expand Up @@ -394,6 +394,8 @@ class Fast42 {
private createRedisLimiter(limit: RateLimit, concurrentOffset: number, redisConfig: RedisConfig): Bottleneck {
// Create a redis client
const client = createClient(redisConfig.port, redisConfig.host, {
port: redisConfig.port,
host: redisConfig.host,
password: redisConfig.password,
});

Expand Down

0 comments on commit c282445

Please sign in to comment.