From 2fcece66659ccbf57ca79ebaa0d4175538312927 Mon Sep 17 00:00:00 2001 From: Pavel Pashov Date: Thu, 28 Aug 2025 19:04:22 +0300 Subject: [PATCH] feat(cluster): pass initialStartupNodes to ConnectionPool --- lib/cluster/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/cluster/index.ts b/lib/cluster/index.ts index a046c3b6..8064ccea 100644 --- a/lib/cluster/index.ts +++ b/lib/cluster/index.ts @@ -148,7 +148,10 @@ class Cluster extends Commander { ); } - this.connectionPool = new ConnectionPool(this.options.redisOptions); + this.connectionPool = new ConnectionPool({ + ...this.options.redisOptions, + initialStartupNodes: this.startupNodes + }); this.connectionPool.on("-node", (redis, key) => { this.emit("-node", redis);