We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78e159d commit 5093f28Copy full SHA for 5093f28
internal/requestconfig/requestconfig.go
@@ -470,7 +470,11 @@ func (cfg *RequestConfig) Execute() (err error) {
470
res.Body.Close()
471
}
472
473
- time.Sleep(retryDelay(res, retryCount))
+ select {
474
+ case <-ctx.Done():
475
+ return ctx.Err()
476
+ case <-time.After(retryDelay(res, retryCount)):
477
+ }
478
479
480
// Save *http.Response if it is requested to, even if there was an error making the request. This is
0 commit comments