From c260a7616475086c82061969aada22b181fd928a Mon Sep 17 00:00:00 2001 From: Konstantinos Kopanidis Date: Mon, 5 Feb 2024 15:54:17 +0200 Subject: [PATCH] feat(grpc-sdk): set maxRetriesPerRequest null in redis clients --- libraries/grpc-sdk/src/utilities/RedisManager.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/grpc-sdk/src/utilities/RedisManager.ts b/libraries/grpc-sdk/src/utilities/RedisManager.ts index effb5cc2f..0a337fda1 100644 --- a/libraries/grpc-sdk/src/utilities/RedisManager.ts +++ b/libraries/grpc-sdk/src/utilities/RedisManager.ts @@ -12,6 +12,7 @@ export class RedisManager { ) { this.redisConnection = { ...redisDetails, + maxRetriesPerRequest: null, }; } @@ -25,7 +26,7 @@ export class RedisManager { nodes: { host: string; port: number }[]; options: ClusterOptions; }; - return new IORedis.Cluster(clusterOptions.nodes, clusterOptions.options); + return new IORedis.Cluster(clusterOptions.nodes, { ...clusterOptions.options }); } else { return new IORedis.Redis({ ...(this.redisConnection as RedisOptions), ...options }); }