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