Skip to content

Commit

Permalink
fix the client
Browse files Browse the repository at this point in the history
  • Loading branch information
erplsf committed May 8, 2024
1 parent f6549ed commit 89bd58d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func newClient(url string) (*Client, error) {
c := &Client{}

// Configure the HTTP client.
c.client = &retryablehttp.Client{
c.Client = &retryablehttp.Client{
Backoff: c.retryHTTPBackoff,
CheckRetry: c.retryHTTPCheck,
RetryWaitMin: 100 * time.Millisecond,
Expand Down Expand Up @@ -190,7 +190,7 @@ func (c *Client) Do(req *retryablehttp.Request, v interface{}) (*http.Response,
return nil, err
}

resp, err := c.client.Do(req)
resp, err := c.Client.Do(req)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 89bd58d

Please sign in to comment.