(period: number, rate: number)
| 37 | const rateLimiter = rateLimiterFactory() |
| 38 | |
| 39 | const hit = (period: number, rate: number) => |
| 40 | rateLimiter.hit(`${remoteAddress}:connection:${period}`, 1, { period: period, rate: rate }) |
| 41 | |
| 42 | let limited = false |
| 43 | for (const { rate, period } of rateLimits) { |
no test coverage detected