From 06b28e1c0a7d9ce163037d4c569b6b94970d99d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20Ve=C4=8Derek?= Date: Thu, 28 Nov 2019 10:54:35 +0100 Subject: [PATCH] Allow sentinelRetryStrategy to be disabled --- lib/connectors/SentinelConnector/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connectors/SentinelConnector/index.ts b/lib/connectors/SentinelConnector/index.ts index f373dfb5..d6cb12bb 100644 --- a/lib/connectors/SentinelConnector/index.ts +++ b/lib/connectors/SentinelConnector/index.ts @@ -37,7 +37,7 @@ export interface ISentinelConnectionOptions extends ITcpConnectionOptions { name: string; sentinelPassword?: string; sentinels: Array>; - sentinelRetryStrategy?: (retryAttempts: number) => number; + sentinelRetryStrategy?: (retryAttempts: number) => number | void | null; preferredSlaves?: PreferredSlaves; connectTimeout?: number; enableTLSForSentinelMode?: boolean;