We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39d63db commit 4313803Copy full SHA for 4313803
packages/client/lib/client/socket.ts
@@ -259,8 +259,7 @@ export default class RedisSocket extends EventEmitter {
259
socket.removeListener('timeout', onTimeout);
260
}
261
262
- //TODO valiate > 0 -> #validateOptions method should be available with csc PR
263
- if (this.#socketTimeout !== undefined) {
+ if (this.#socketTimeout) {
264
socket.setTimeout(this.#socketTimeout);
265
socket.once('timeout', () => {
266
socket.destroy(new SocketTimeoutError(this.#socketTimeout!));
0 commit comments