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 @@ -5,6 +5,8 @@ import Connection from 'mysql/lib/Connection';
5
5
import Pool from 'mysql/lib/Pool' ;
6
6
import log from './log' ;
7
7
8
+ bluebird . promisifyAll ( [ Pool , Connection ] ) ;
9
+
8
10
const connectionLimit = parseInt ( process . env . CONNECTION_LIMIT ?? '25' ) ;
9
11
log . info ( `[mysql] connection limit ${ connectionLimit } ` ) ;
10
12
@@ -19,7 +21,6 @@ hubConfig.connectTimeout = 60e3;
19
21
hubConfig . acquireTimeout = 60e3 ;
20
22
hubConfig . timeout = 60e3 ;
21
23
hubConfig . charset = 'utf8mb4' ;
22
- bluebird . promisifyAll ( [ Pool , Connection ] ) ;
23
24
const hubDB = mysql . createPool ( hubConfig ) ;
24
25
25
26
// @ts -ignore
@@ -33,7 +34,6 @@ sequencerConfig.connectTimeout = 60e3;
33
34
sequencerConfig . acquireTimeout = 60e3 ;
34
35
sequencerConfig . timeout = 60e3 ;
35
36
sequencerConfig . charset = 'utf8mb4' ;
36
- bluebird . promisifyAll ( [ Pool , Connection ] ) ;
37
37
const sequencerDB = mysql . createPool ( sequencerConfig ) ;
38
38
39
39
export { hubDB as default , sequencerDB } ;
You can’t perform that action at this time.
0 commit comments