From 4318faf70dfd4e81991262d01ea19e5c8f399dc1 Mon Sep 17 00:00:00 2001 From: Zihua Li Date: Wed, 30 Mar 2022 08:53:15 +0800 Subject: [PATCH] fix: allow option maxRetriesPerRequest to be null Closes #1550 --- lib/redis/RedisOptions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redis/RedisOptions.ts b/lib/redis/RedisOptions.ts index 34e540b1..8585b45e 100644 --- a/lib/redis/RedisOptions.ts +++ b/lib/redis/RedisOptions.ts @@ -86,7 +86,7 @@ export interface CommonRedisOptions extends CommanderOptions { /** * @default 20 */ - maxRetriesPerRequest?: number; + maxRetriesPerRequest?: number | null; /** * @default 10000 */