File tree Expand file tree Collapse file tree 3 files changed +6
-18
lines changed Expand file tree Collapse file tree 3 files changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -226,11 +226,7 @@ function closePoolAndExit() {
226
226
}
227
227
228
228
process
229
- . on ( 'SIGTERM' , function ( ) {
230
- closePoolAndExit ( ) ;
231
- } )
232
- . on ( 'SIGINT' , function ( ) {
233
- closePoolAndExit ( ) ;
234
- } ) ;
229
+ . on ( 'SIGTERM' , closePoolAndExit )
230
+ . on ( 'SIGINT' , closePoolAndExit ) ;
235
231
236
232
init ( ) ;
Original file line number Diff line number Diff line change @@ -199,11 +199,7 @@ async function closePoolAndExit() {
199
199
}
200
200
201
201
process
202
- . on ( 'SIGTERM' , function ( ) {
203
- closePoolAndExit ( ) ;
204
- } )
205
- . on ( 'SIGINT' , function ( ) {
206
- closePoolAndExit ( ) ;
207
- } ) ;
202
+ . on ( 'SIGTERM' , closePoolAndExit )
203
+ . on ( 'SIGINT' , closePoolAndExit ) ;
208
204
209
205
init ( ) ;
Original file line number Diff line number Diff line change @@ -219,11 +219,7 @@ function closePoolAndExit() {
219
219
}
220
220
221
221
process
222
- . on ( 'SIGTERM' , function ( ) {
223
- closePoolAndExit ( ) ;
224
- } )
225
- . on ( 'SIGINT' , function ( ) {
226
- closePoolAndExit ( ) ;
227
- } ) ;
222
+ . on ( 'SIGTERM' , closePoolAndExit )
223
+ . on ( 'SIGINT' , closePoolAndExit ) ;
228
224
229
225
init ( ) ;
You can’t perform that action at this time.
0 commit comments