You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-17 19:41:06 +03:00
Do not use "timers/promises", fix "isRedisVersionGreaterThan"
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import EventEmitter from 'events';
|
||||
import net from 'net';
|
||||
import tls from 'tls';
|
||||
import { setTimeout } from 'timers/promises';
|
||||
import { URL } from 'url';
|
||||
import { promiseTimeout } from './utils';
|
||||
|
||||
interface RedisSocketCommonOptions {
|
||||
username?: string;
|
||||
@@ -147,7 +147,7 @@ export default class RedisSocket extends EventEmitter {
|
||||
throw retryIn;
|
||||
}
|
||||
|
||||
await setTimeout(retryIn);
|
||||
await promiseTimeout(retryIn);
|
||||
return this.#retryConnection(retries + 1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user