(response)
| 1485 | const runRequest = (adaptive: RateLimiter.AdaptiveConsumeResult | undefined) => { |
| 1486 | const request = Effect.matchEffect(effect, { |
| 1487 | onSuccess(response) { |
| 1488 | return Effect.flatMap(inspectResponse(response, adaptive), (retryAfter) => { |
| 1489 | if (response.status !== 429 || !canRetry) return Effect.succeed(response) |
| 1490 | return retry(retryAfter) |
| 1491 | }) |
| 1492 | }, |
| 1493 | onFailure(error) { |
| 1494 | if (isTooManyRequestsHttpClientError(error)) { |
| 1495 | return Effect.flatMap( |
nothing calls this directly
no test coverage detected