Remove dashboard-load timing instrumentation

The perf logs were temporary diagnostics used to identify that slow
reloads were caused by a registered remote node timing out in
/projects/across-nodes. Root cause is resolved and the short-circuit
for zero-remote setups (already committed in 7ea60382a) remains.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Fusion
2026-04-19 00:58:05 -07:00
committed by gsxdsm
parent af833c3264
commit 7cb9fd61ba
5 changed files with 60 additions and 31 deletions

View File

@@ -1995,6 +1995,16 @@ export class AgentStore extends EventEmitter {
this.db.bumpLastModified();
}
/**
* Close the underlying SQLite connection and release resources.
*/
close(): void {
if (this._db) {
this._db.close();
this._db = null;
}
}
private async withLock<T>(agentId: string, fn: () => Promise<T>): Promise<T> {
// Get or create lock for this agent
let lock = this.locks.get(agentId);