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