Skip to content

Commit 00bd83d

Browse files
committed
Refactor executeRequest to include retries
1 parent a31120f commit 00bd83d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpclient/httpclient_ping.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (c *Client) DoPing(method, endpoint string, body, out interface{}) (*http.R
5757
// Loop until a successful response is received or maximum retries are reached
5858
for retryCount <= maxRetries {
5959
// Use the existing 'do' function for sending the request
60-
resp, err := c.executeRequest(method, endpoint, body, out)
60+
resp, err := c.executeRequestWithRetries(method, endpoint, body, out)
6161

6262
// If request is successful and returns 200 status code, return the response
6363
if err == nil && resp.StatusCode == http.StatusOK {

0 commit comments

Comments
 (0)