(limits: RateLimits, dataCategory: DataCategory)
| 35 | * @return the time in ms that the category is disabled until or 0 if there's no active rate limit. |
| 36 | */ |
| 37 | export function disabledUntil(limits: RateLimits, dataCategory: DataCategory): number { |
| 38 | return limits[dataCategory] || limits.all || 0; |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Checks if a category is rate limited |
no outgoing calls
no test coverage detected