We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5423b9 commit e347d56Copy full SHA for e347d56
packages/client/lib/sentinel/index.ts
@@ -716,7 +716,7 @@ class RedisSentinelInternal<
716
);
717
}
718
719
- #createClient(node: RedisNode, clientOptions: RedisClientOptions, reconnectStrategy?: undefined | false) {
+ #createClient(node: RedisNode, clientOptions: RedisClientOptions, reconnectStrategy?: false) {
720
return RedisClient.create({
721
//first take the globally set RESP
722
RESP: this.#RESP,
@@ -726,7 +726,7 @@ class RedisSentinelInternal<
726
...clientOptions.socket,
727
host: node.host,
728
port: node.port,
729
- reconnectStrategy
+ ...(reconnectStrategy !== undefined && { reconnectStrategy })
730
731
});
732
0 commit comments