(limits: RateLimits, dataCategory: DataCategory, now: number = safeDateNow())
| 42 | * Checks if a category is rate limited |
| 43 | */ |
| 44 | export function isRateLimited(limits: RateLimits, dataCategory: DataCategory, now: number = safeDateNow()): boolean { |
| 45 | return disabledUntil(limits, dataCategory) > now; |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Update ratelimits from incoming headers. |
no test coverage detected