MCPcopy Index your code
hub / github.com/CodeGraphContext/CodeGraphContext / setRepoCooldown

Function setRepoCooldown

website/api/lib/security.js:105–108  ·  view source on GitHub ↗
(repoKey, now = Date.now())

Source from the content-addressed store, hash-verified

103}
104
105function setRepoCooldown(repoKey, now = Date.now()) {
106 const { cooldownMs } = getRepoProtectionConfig();
107 repoCooldowns.set(repoKey, now + cooldownMs);
108}
109
110function getActiveRepoJob(repoKey, now = Date.now()) {
111 cleanupExpiredEntries(now);

Callers 1

handlerFunction · 0.90

Calls 1

getRepoProtectionConfigFunction · 0.85

Tested by

no test coverage detected