MCPcopy Create free account
hub / github.com/codeaashu/claude-code / cleanup

Method cleanup

src/server/web/session-manager.ts:50–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 }
49
50 private cleanup(): void {
51 const cutoff = Date.now() - 3_600_000;
52 for (const [id, ts] of this.attempts) {
53 const r = ts.filter((t) => t > cutoff);
54 if (r.length === 0) this.attempts.delete(id);
55 else this.attempts.set(id, r);
56 }
57 }
58}
59
60// ── SessionManager ────────────────────────────────────────────────────────────

Callers 1

constructorMethod · 0.95

Calls 2

deleteMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected