This repository was archived by the owner on May 11, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import Connection from 'mysql/lib/Connection';
55import Pool from 'mysql/lib/Pool' ;
66import log from './log' ;
77
8+ bluebird . promisifyAll ( [ Pool , Connection ] ) ;
9+
810const connectionLimit = parseInt ( process . env . CONNECTION_LIMIT ?? '25' ) ;
911log . info ( `[mysql] connection limit ${ connectionLimit } ` ) ;
1012
@@ -19,7 +21,6 @@ hubConfig.connectTimeout = 60e3;
1921hubConfig . acquireTimeout = 60e3 ;
2022hubConfig . timeout = 60e3 ;
2123hubConfig . charset = 'utf8mb4' ;
22- bluebird . promisifyAll ( [ Pool , Connection ] ) ;
2324const hubDB = mysql . createPool ( hubConfig ) ;
2425
2526// @ts -ignore
@@ -33,7 +34,6 @@ sequencerConfig.connectTimeout = 60e3;
3334sequencerConfig . acquireTimeout = 60e3 ;
3435sequencerConfig . timeout = 60e3 ;
3536sequencerConfig . charset = 'utf8mb4' ;
36- bluebird . promisifyAll ( [ Pool , Connection ] ) ;
3737const sequencerDB = mysql . createPool ( sequencerConfig ) ;
3838
3939export { hubDB as default , sequencerDB } ;
You can’t perform that action at this time.
0 commit comments