Skip to content

Commit c282445

Browse files
committed
fix: really connect to the correct host now
1 parent 9e74306 commit c282445

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class Fast42 {
253253

254254
public async disconnect() {
255255
return Promise.all(this._limiterPairs.map(async (limiterPair) => {
256-
return limiterPair.limiter.disconnect()
256+
return limiterPair.limiter.disconnect(true)
257257
}))
258258
}
259259

@@ -394,6 +394,8 @@ class Fast42 {
394394
private createRedisLimiter(limit: RateLimit, concurrentOffset: number, redisConfig: RedisConfig): Bottleneck {
395395
// Create a redis client
396396
const client = createClient(redisConfig.port, redisConfig.host, {
397+
port: redisConfig.port,
398+
host: redisConfig.host,
397399
password: redisConfig.password,
398400
});
399401

0 commit comments

Comments
 (0)