(err error)
| 277 | } |
| 278 | |
| 279 | func shouldRetry(err error) bool { |
| 280 | if httpError, ok := errors.AsType[api.HTTPError](err); ok { |
| 281 | if httpError.StatusCode >= 500 && httpError.StatusCode <= 599 { |
| 282 | return true |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | return false |
| 287 | } |
| 288 | |
| 289 | // GetTrustDomain returns the current trust domain. If the default is used |
| 290 | // the empty string is returned |
no outgoing calls
no test coverage detected