Skip to content

Commit

Permalink
feat(grpc-sdk): set maxRetriesPerRequest null in redis clients
Browse files Browse the repository at this point in the history
  • Loading branch information
kkopanidis committed Feb 5, 2024
1 parent 5e32e69 commit c260a76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/grpc-sdk/src/utilities/RedisManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export class RedisManager {
) {
this.redisConnection = {
...redisDetails,
maxRetriesPerRequest: null,
};
}

Expand All @@ -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 });
}
Expand Down

0 comments on commit c260a76

Please sign in to comment.