MCPcopy Create free account
hub / github.com/code100x/cms / RateLimiter

Interface RateLimiter

src/lib/utils.ts:180–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178};
179
180interface RateLimiter {
181 timestamps: Date[];
182}
183const userRateLimits = new Map<string, RateLimiter>();
184const RATE_LIMIT_COUNT = 5; // Nums of comment s allowed in the interval
185const RATE_LIMIT_INTERVAL = 60000; // Interval in milliseconds (1 minute)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected