RetryAttempts sets the maximum number of attempts (including the first one).
(attempts int)
| 151 | |
| 152 | // RetryAttempts sets the maximum number of attempts (including the first one). |
| 153 | func RetryAttempts(attempts int) RetryOption { |
| 154 | return func(c *retryConfig) { |
| 155 | c.maxAttempts = attempts |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | // RetryBackoff sets the fixed backoff duration between attempts. |
| 160 | func RetryBackoff(backoff time.Duration) RetryOption { |
no outgoing calls