Finalize reliability configs

This commit is contained in:
Ben Sarmiento
2023-11-28 01:11:55 +01:00
parent a7fd68b3fd
commit 1f91d70420
3 changed files with 12 additions and 1 deletions

View File

@@ -80,7 +80,7 @@ func (r *HTTPClient) Do(req *http.Request) (*http.Response, error) {
return resp, err
} else {
if val == 0 {
time.Sleep(8 * time.Second) // extra delay
time.Sleep(time.Duration(r.config.GetRateLimitSleepSeconds()) * time.Second) // extra delay
} else {
attempt += val
if attempt > r.MaxRetries {