MCPcopy Index your code
hub / github.com/codeaashu/claude-code / recent

Method recent

src/server/web/session-manager.ts:43–48  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

41 }
42
43 private recent(userId: string): number[] {
44 const cutoff = Date.now() - 3_600_000;
45 const filtered = (this.attempts.get(userId) ?? []).filter((t) => t > cutoff);
46 this.attempts.set(userId, filtered);
47 return filtered;
48 }
49
50 private cleanup(): void {
51 const cutoff = Date.now() - 3_600_000;

Callers 3

allowMethod · 0.95
recordMethod · 0.95
retryAfterSecondsMethod · 0.95

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected