File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export class RDSClient extends Operator {
6767 constructor ( options : RDSClientOptions ) {
6868 super ( ) ;
6969 options . connectTimeout = options . connectTimeout ?? 500 ;
70- const { connectionStorage, connectionStorageKey, ...mysqlOptions } = options ;
70+ const { connectionStorage, connectionStorageKey, poolWaitTimeout , ...mysqlOptions } = options ;
7171 // get connection options from getConnectionConfig method every time
7272 if ( mysqlOptions . getConnectionConfig ) {
7373 this . #pool = new Pool ( { config : new RDSPoolConfig ( mysqlOptions , mysqlOptions . getConnectionConfig ) } as any ) as unknown as PoolPromisify ;
@@ -83,7 +83,7 @@ export class RDSClient extends Operator {
8383 } ) ;
8484 this . #connectionStorage = connectionStorage || new AsyncLocalStorage ( ) ;
8585 this . #connectionStorageKey = connectionStorageKey || RDSClient . #DEFAULT_STORAGE_KEY;
86- this . #poolWaitTimeout = options . poolWaitTimeout ?? 500 ;
86+ this . #poolWaitTimeout = poolWaitTimeout ?? 500 ;
8787 // https://github.com/mysqljs/mysql#pool-events
8888 this . #pool. on ( 'connection' , ( connection : PoolConnectionPromisify ) => {
8989 channels . connectionNew . publish ( {
You can’t perform that action at this time.
0 commit comments