1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-17 19:41:06 +03:00

clean code

This commit is contained in:
leibale
2021-07-02 18:27:50 -04:00
parent 81837c67eb
commit a2de68c572
9 changed files with 12 additions and 22 deletions

View File

@@ -6,12 +6,12 @@ import { RedisReply } from './commands';
export interface QueueCommandOptions {
asap?: boolean;
signal?: AbortSignal;
chainId?: Symbol;
chainId?: symbol;
}
interface CommandWaitingToBeSent extends CommandWaitingForReply {
encodedCommand: string;
chainId?: Symbol;
chainId?: symbol;
abort?: {
signal: AbortSignal;
listener(): void;
@@ -119,7 +119,7 @@ export default class RedisCommandsQueue {
returnError: (err: Error) => this.#shiftWaitingForReply().reject(err)
});
#chainInExecution: Symbol | undefined;
#chainInExecution: symbol | undefined;
constructor(maxLength: number | null | undefined, executor: CommandsQueueExecutor) {
this.#maxLength = maxLength;
@@ -293,7 +293,7 @@ export default class RedisCommandsQueue {
const encoded: Array<string> = [];
let size = 0,
lastCommandChainId: Symbol | undefined;
lastCommandChainId: symbol | undefined;
for (const command of this.#waitingToBeSent) {
encoded.push(command.encodedCommand);
size += command.encodedCommand.length;