SetCommonRetryCount enables retry and set the maximum retry count for requests fired from the client. It will retry infinitely if count is negative.
(count int)
| 1387 | // fired from the client. |
| 1388 | // It will retry infinitely if count is negative. |
| 1389 | func (c *Client) SetCommonRetryCount(count int) *Client { |
| 1390 | c.getRetryOption().MaxRetries = count |
| 1391 | return c |
| 1392 | } |
| 1393 | |
| 1394 | // SetCommonRetryInterval sets the custom GetRetryIntervalFunc for requests fired |
| 1395 | // from the client, you can use this to implement your own backoff retry algorithm. |