File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
packages/client/lib/client Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,6 @@ export default class RedisCommandsQueue {
152
152
if ( this . #maxLength && this . #toWrite. length + this . #waitingForReply. length >= this . #maxLength) {
153
153
return Promise . reject ( new Error ( 'The queue is full' ) ) ;
154
154
} else if ( options ?. abortSignal ?. aborted ) {
155
- console . log ( 'eeeeeeeee' , args )
156
155
return Promise . reject ( new AbortError ( ) ) ;
157
156
}
158
157
@@ -171,12 +170,10 @@ export default class RedisCommandsQueue {
171
170
172
171
const timeout = options ?. timeout ;
173
172
if ( timeout ) {
174
- console . log ( 'set timeout' , timeout ) ;
175
173
const signal = AbortSignal . timeout ( timeout ) ;
176
174
value . timeout = {
177
175
signal,
178
176
listener : ( ) => {
179
- console . log ( 'TIMEOUT OCCURRED' , node ) ;
180
177
this . #toWrite. remove ( node ) ;
181
178
value . reject ( new TimeoutError ( ) ) ;
182
179
}
@@ -186,11 +183,9 @@ export default class RedisCommandsQueue {
186
183
187
184
const signal = options ?. abortSignal ;
188
185
if ( signal ) {
189
- console . log ( 'signal' , signal )
190
186
value . abort = {
191
187
signal,
192
188
listener : ( ) => {
193
- console . log ( 'ABORT OCCURRED' , node ) ;
194
189
this . #toWrite. remove ( node ) ;
195
190
value . reject ( new AbortError ( ) ) ;
196
191
}
Original file line number Diff line number Diff line change @@ -526,7 +526,7 @@ export default class RedisClient<
526
526
async #handshake( chainId : symbol , asap : boolean ) {
527
527
const promises = [ ] ;
528
528
const commandsWithErrorHandlers = await this . #getHandshakeCommands( ) ;
529
-
529
+
530
530
if ( asap ) commandsWithErrorHandlers . reverse ( )
531
531
532
532
for ( const { cmd, errorHandler } of commandsWithErrorHandlers ) {
@@ -632,7 +632,7 @@ export default class RedisClient<
632
632
// since they could be connected to an older version that doesn't support them.
633
633
}
634
634
} ) ;
635
-
635
+
636
636
commands . push ( {
637
637
cmd : [
638
638
'CLIENT' ,
@@ -889,7 +889,6 @@ export default class RedisClient<
889
889
return Promise . reject ( new ClientOfflineError ( ) ) ;
890
890
}
891
891
892
- console . log ( 'sendCommand' , args , options )
893
892
const promise = this . _self . #queue. addCommand < T > ( args , options ) ;
894
893
this . _self . #scheduleWrite( ) ;
895
894
return promise ;
You can’t perform that action at this time.
0 commit comments