(err error)
| 285 | } |
| 286 | |
| 287 | func isTimeoutError(err error) bool { |
| 288 | var netErr net.Error |
| 289 | return errors.As(err, &netErr) && netErr.Timeout() |
| 290 | } |
| 291 | |
| 292 | // retryOnError will repeatedly call the given (error-returning) func in the |
| 293 | // case that its response is non-nil and retryable (as determined by the |
no outgoing calls
no test coverage detected