Skip to content

Commit

Permalink
Update socket.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
leibale authored Aug 22, 2022
1 parent 66a3d45 commit 52f0fb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client/lib/client/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import { RedisCommandArguments } from '../commands';
import { ConnectionTimeoutError, ClientClosedError, SocketClosedUnexpectedlyError, ReconnectStrategyError } from '../errors';
import { promiseTimeout } from '../utils';

type ReconnectStrategy = (retries: number) => number | Error;
type ReconnectStrategy = ;

export interface RedisSocketCommonOptions {
connectTimeout?: number;
noDelay?: boolean;
keepAlive?: number | false;
reconnectStrategy?: ReconnectStrategy;
reconnectStrategy?(retries: number): number | Error;
}

type RedisNetSocketOptions = Partial<net.SocketConnectOpts> & {
Expand Down

0 comments on commit 52f0fb5

Please sign in to comment.