清理不必要的測試檔案

This commit is contained in:
2025-09-21 03:23:26 +08:00
parent 8b3af6608e
commit f6abef38e9
58 changed files with 1 additions and 8621 deletions

View File

@@ -5,7 +5,6 @@
import { db } from './database';
import { dbFailover } from './database-failover';
import { dbMonitor } from './database-monitor';
import { smartPool } from './smart-connection-pool';
export class DatabaseShutdownManager {
private static instance: DatabaseShutdownManager;
@@ -58,16 +57,6 @@ export class DatabaseShutdownManager {
}
});
// 添加智能連線池關閉處理器
this.addShutdownHandler('smart-pool', async () => {
console.log('🔄 正在清理智能連線池...');
try {
smartPool.forceCleanup();
console.log('✅ 智能連線池已清理');
} catch (error) {
console.error('❌ 清理智能連線池時發生錯誤:', error);
}
});
// 註冊系統信號處理器
this.registerSystemHandlers();