1
0

fix: 安全性与代码质量加固(异常保护、外键级联、竞态修复、优雅关机)

This commit is contained in:
2026-05-11 14:24:12 +08:00
parent 35ba56888b
commit 0ee10b47c9
17 changed files with 132 additions and 33 deletions

View File

@@ -15,7 +15,7 @@ export class ProbeEngine {
constructor(store: ProbeStore, targets: ResolvedTarget[], maxConcurrentChecks?: number) {
this.store = store;
this.targets = targets;
this.maxConcurrentChecks = maxConcurrentChecks ?? 10;
this.maxConcurrentChecks = maxConcurrentChecks ?? 20;
this.refreshCache();
}
@@ -86,6 +86,8 @@ export class ProbeEngine {
for (const result of results) {
if (result.status === "fulfilled") {
this.writeResult(result.value);
} else {
console.warn("探针执行失败:", result.reason);
}
}
}