Skip to content

Commit

Permalink
Allow sentinelRetryStrategy to be disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
vecerek authored and luin committed Nov 28, 2019
1 parent 416591c commit 06b28e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connectors/SentinelConnector/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface ISentinelConnectionOptions extends ITcpConnectionOptions {
name: string;
sentinelPassword?: string;
sentinels: Array<Partial<ISentinelAddress>>;
sentinelRetryStrategy?: (retryAttempts: number) => number;
sentinelRetryStrategy?: (retryAttempts: number) => number | void | null;
preferredSlaves?: PreferredSlaves;
connectTimeout?: number;
enableTLSForSentinelMode?: boolean;
Expand Down

0 comments on commit 06b28e1

Please sign in to comment.