Skip to content

Commit 0c11413

Browse files
committed
remove logs
1 parent 5086fc5 commit 0c11413

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ export default class RedisCommandsQueue {
152152
if (this.#maxLength && this.#toWrite.length + this.#waitingForReply.length >= this.#maxLength) {
153153
return Promise.reject(new Error('The queue is full'));
154154
} else if (options?.abortSignal?.aborted) {
155-
console.log('eeeeeeeee', args)
156155
return Promise.reject(new AbortError());
157156
}
158157

@@ -171,12 +170,10 @@ export default class RedisCommandsQueue {
171170

172171
const timeout = options?.timeout;
173172
if (timeout) {
174-
console.log('set timeout', timeout);
175173
const signal = AbortSignal.timeout(timeout);
176174
value.timeout = {
177175
signal,
178176
listener: () => {
179-
console.log('TIMEOUT OCCURRED', node);
180177
this.#toWrite.remove(node);
181178
value.reject(new TimeoutError());
182179
}
@@ -186,11 +183,9 @@ export default class RedisCommandsQueue {
186183

187184
const signal = options?.abortSignal;
188185
if (signal) {
189-
console.log('signal', signal)
190186
value.abort = {
191187
signal,
192188
listener: () => {
193-
console.log('ABORT OCCURRED', node);
194189
this.#toWrite.remove(node);
195190
value.reject(new AbortError());
196191
}

packages/client/lib/client/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ export default class RedisClient<
526526
async #handshake(chainId: symbol, asap: boolean) {
527527
const promises = [];
528528
const commandsWithErrorHandlers = await this.#getHandshakeCommands();
529-
529+
530530
if (asap) commandsWithErrorHandlers.reverse()
531531

532532
for (const { cmd, errorHandler } of commandsWithErrorHandlers) {
@@ -632,7 +632,7 @@ export default class RedisClient<
632632
// since they could be connected to an older version that doesn't support them.
633633
}
634634
});
635-
635+
636636
commands.push({
637637
cmd: [
638638
'CLIENT',
@@ -889,7 +889,6 @@ export default class RedisClient<
889889
return Promise.reject(new ClientOfflineError());
890890
}
891891

892-
console.log('sendCommand', args, options)
893892
const promise = this._self.#queue.addCommand<T>(args, options);
894893
this._self.#scheduleWrite();
895894
return promise;

0 commit comments

Comments
 (0)