From d62a8082131389c38a24244ed29a5a9d8b06c4e7 Mon Sep 17 00:00:00 2001 From: Zihua Li Date: Wed, 30 Mar 2022 10:10:05 +0800 Subject: [PATCH] fix: allow option maxRetriesPerRequest to be null (#1553) 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 */