fix: 移除未使用的类型导出,清理代码

This commit is contained in:
catlog22
2026-01-13 09:27:35 +08:00
parent a63d547856
commit cdcb517bc2
4 changed files with 91 additions and 0 deletions

View File

@@ -640,6 +640,12 @@ export async function startServer(options: ServerOptions = {}): Promise<http.Ser
try {
const healthCheckService = getHealthCheckService();
healthCheckService.startAllHealthChecks(initialPath);
// Graceful shutdown: stop health checks when server closes
server.on('close', () => {
console.log('[Server] Shutting down health check service...');
healthCheckService.stopAllHealthChecks();
});
} catch (err) {
console.warn('[Server] Failed to start health check service:', err);
}