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