File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
packages/client/lib/client Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -525,7 +525,7 @@ export default class RedisClient<
525
525
526
526
async #handshake( chainId : symbol , asap : boolean ) {
527
527
const promises = [ ] ;
528
- const commandsWithErrorHandlers = await this . #getHandshakeCommands( this . #selectedDB ?? 0 ) ;
528
+ const commandsWithErrorHandlers = await this . #getHandshakeCommands( ) ;
529
529
530
530
if ( asap ) commandsWithErrorHandlers . reverse ( )
531
531
@@ -542,9 +542,7 @@ export default class RedisClient<
542
542
return promises ;
543
543
}
544
544
545
- async #getHandshakeCommands(
546
- selectedDB : number
547
- ) : Promise <
545
+ async #getHandshakeCommands( ) : Promise <
548
546
Array < { cmd : CommandArguments } & { errorHandler ?: ( err : Error ) => void } >
549
547
> {
550
548
const commands = [ ] ;
@@ -617,7 +615,7 @@ export default class RedisClient<
617
615
}
618
616
}
619
617
620
- if ( selectedDB !== 0 ) {
618
+ if ( this . # selectedDB !== 0 ) {
621
619
commands . push ( { cmd : [ 'SELECT' , this . #selectedDB. toString ( ) ] } ) ;
622
620
}
623
621
You can’t perform that action at this time.
0 commit comments