AddCommonRetryCondition adds a retry condition, which determines whether the request should retry.
(condition RetryConditionFunc)
| 1447 | // AddCommonRetryCondition adds a retry condition, which determines whether the |
| 1448 | // request should retry. |
| 1449 | func (c *Client) AddCommonRetryCondition(condition RetryConditionFunc) *Client { |
| 1450 | ro := c.getRetryOption() |
| 1451 | ro.RetryConditions = append(ro.RetryConditions, condition) |
| 1452 | return c |
| 1453 | } |
| 1454 | |
| 1455 | // SetUnixSocket set client to dial connection use unix socket. |
| 1456 | // For example: |