RetryBackoff sets the fixed backoff duration between attempts.
(backoff time.Duration)
| 158 | |
| 159 | // RetryBackoff sets the fixed backoff duration between attempts. |
| 160 | func RetryBackoff(backoff time.Duration) RetryOption { |
| 161 | return func(c *retryConfig) { |
| 162 | c.backoff = backoff |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | // RetryableError is an interface that errors can implement to signal whether they are retryable. |
| 167 | type RetryableError interface { |
no outgoing calls