You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
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 <maximilian.gruenfelder@sap.com> Co-authored-by: Leibale Eidelman <me@leibale.com>
This commit is contained in:
@@ -261,10 +261,10 @@ export default class RedisClusterSlots<
|
|||||||
|
|
||||||
let socket;
|
let socket;
|
||||||
if (this.#options.defaults.socket) {
|
if (this.#options.defaults.socket) {
|
||||||
socket = options?.socket ? {
|
socket = {
|
||||||
...this.#options.defaults.socket,
|
...this.#options.defaults.socket,
|
||||||
...options.socket
|
...options?.socket
|
||||||
} : this.#options.defaults.socket;
|
};
|
||||||
} else {
|
} else {
|
||||||
socket = options?.socket;
|
socket = options?.socket;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user