()
| 433 | } |
| 434 | |
| 435 | const shutdown = async () => { |
| 436 | console.log('\nShutting down...') |
| 437 | const { stopHttpServer } = await import('./http') |
| 438 | await stopHttpServer() |
| 439 | process.exit(0) |
| 440 | } |
| 441 | |
| 442 | process.on('SIGINT', shutdown) |
| 443 | process.on('SIGTERM', shutdown) |
nothing calls this directly
no test coverage detected