(err error)
| 266 | } |
| 267 | |
| 268 | func shouldRetry(err error) bool { |
| 269 | var httpError api.HTTPError |
| 270 | if errors.As(err, &httpError) { |
| 271 | if httpError.StatusCode >= 500 && httpError.StatusCode <= 599 { |
| 272 | return true |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | return false |
| 277 | } |
| 278 | |
| 279 | // GetTrustDomain returns the current trust domain. If the default is used |
| 280 | // the empty string is returned |
no outgoing calls
no test coverage detected