You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
fix client.quit, add error events on cluster, fix some "deepsource.io" warnings
This commit is contained in:
@@ -298,9 +298,10 @@ export default class RedisClient<M extends RedisModules = RedisModules, S extend
|
||||
}
|
||||
|
||||
QUIT(): Promise<void> {
|
||||
return this.#socket.quit(async () => {
|
||||
this.#queue.addEncodedCommand(encodeCommand(['QUIT']));
|
||||
return this.#socket.quit(() => {
|
||||
const promise = this.#queue.addEncodedCommand(encodeCommand(['QUIT']));
|
||||
this.#tick();
|
||||
return promise;
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user