SetRetryConfig updates the retry configuration
(config RetryConfig)
| 50 | |
| 51 | // SetRetryConfig updates the retry configuration |
| 52 | func SetRetryConfig(config RetryConfig) { |
| 53 | DefaultRetry = Retry{ |
| 54 | MaxWait: config.MaxWait, |
| 55 | MaxRetry: config.MaxRetry, |
| 56 | } |
| 57 | DefaultBackoff = Backoff{ |
| 58 | Duration: config.Duration, |
| 59 | Factor: config.Factor, |
| 60 | Jitter: config.Jitter, |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | type Retry struct { |
| 65 | MaxWait time.Duration |
no outgoing calls