Skip to content

Commit cad9160

Browse files
committed
cosmetics
1 parent d1fffe9 commit cad9160

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/client/lib/client/commands-queue.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default class RedisCommandsQueue {
5555
readonly #respVersion;
5656
readonly #maxLength;
5757
readonly #toWrite = new DoublyLinkedList<CommandToWrite>();
58-
readonly #waitingForReply: EmptyAwareSinglyLinkedList<CommandWaitingForReply>;
58+
readonly #waitingForReply = new EmptyAwareSinglyLinkedList<CommandWaitingForReply>();
5959
readonly #onShardedChannelMoved;
6060
#chainInExecution: symbol | undefined;
6161
readonly decoder;
@@ -77,7 +77,6 @@ export default class RedisCommandsQueue {
7777
this.#maxLength = maxLength;
7878
this.#onShardedChannelMoved = onShardedChannelMoved;
7979
this.decoder = this.#initiateDecoder();
80-
this.#waitingForReply = new EmptyAwareSinglyLinkedList<CommandWaitingForReply>()
8180
this.#waitingForReply.events.on('empty', this.events.emit.bind(this.events, 'waitingForReplyEmpty'))
8281
}
8382

0 commit comments

Comments
 (0)