Skip to content

Commit 9a3e1c5

Browse files
soccermaxMax Gruenfelderleibale
authored
Fix creation of cluster client again (#2870)
* shallow copy of this.#options.defaults.socket * shallow copy of this.#options.defaults.socket * nit * fix redis create cluster client again --------- Co-authored-by: Max Gruenfelder <[email protected]> Co-authored-by: Leibale Eidelman <[email protected]>
1 parent b87b8b1 commit 9a3e1c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/client/lib/cluster/cluster-slots.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,10 @@ export default class RedisClusterSlots<
261261

262262
let socket;
263263
if (this.#options.defaults.socket) {
264-
socket = options?.socket ? {
264+
socket = {
265265
...this.#options.defaults.socket,
266-
...options.socket
267-
} : this.#options.defaults.socket;
266+
...options?.socket
267+
};
268268
} else {
269269
socket = options?.socket;
270270
}

0 commit comments

Comments
 (0)