(key: string)
| 237 | hits: Map<string, number> = new Map() |
| 238 | |
| 239 | async get(key: string): Promise<ClientRateLimitInfo> { |
| 240 | return { |
| 241 | totalHits: this.hits.get(key) ?? 0, |
| 242 | resetTime: undefined, |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | async increment(key: string): Promise<ClientRateLimitInfo> { |
| 247 | const count = (this.hits.get(key) ?? 0) + 1 |
no outgoing calls
no test coverage detected