Skip to content

Commit

Permalink
remove timeout from httpclient and set only timeout between retries
Browse files Browse the repository at this point in the history
  • Loading branch information
kostaskoukouvis committed Mar 4, 2021
1 parent 2f2f097 commit e2f0c33
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ func NewRetryableConnection(host, core string, client *http.Client, maxTimeout t

retryClient := retryablehttp.NewClient()
retryClient.HTTPClient = client
retryClient.HTTPClient.Timeout = maxTimeout
retryClient.RetryWaitMin = 10 * time.Millisecond
retryClient.RetryWaitMax = maxTimeout
retryClient.RetryMax = 10
Expand Down

0 comments on commit e2f0c33

Please sign in to comment.