| 187 | : retry_strategy_(std::move(retry_strategy)) {} |
| 188 | |
| 189 | bool ShouldRetry(const AWSErrorDetail& detail, int64_t attempted_retries) override { |
| 190 | Aws::Client::AWSError<Aws::Client::CoreErrors> error = DetailToError(detail); |
| 191 | return retry_strategy_->ShouldRetry( |
| 192 | error, static_cast<long>(attempted_retries)); // NOLINT: runtime/int |
| 193 | } |
| 194 | |
| 195 | int64_t CalculateDelayBeforeNextRetry(const AWSErrorDetail& detail, |
| 196 | int64_t attempted_retries) override { |
no outgoing calls
no test coverage detected