Skip to content

Commit

Permalink
Fix creation of cluster client again (#2870)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Nov 25, 2024
1 parent b87b8b1 commit 9a3e1c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/client/lib/cluster/cluster-slots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ export default class RedisClusterSlots<

let socket;
if (this.#options.defaults.socket) {
socket = options?.socket ? {
socket = {
...this.#options.defaults.socket,
...options.socket
} : this.#options.defaults.socket;
...options?.socket
};
} else {
socket = options?.socket;
}
Expand Down

0 comments on commit 9a3e1c5

Please sign in to comment.