WithBackoffMaxDuration set backoff max duration
(d time.Duration)
| 65 | |
| 66 | // WithBackoffMaxDuration set backoff max duration |
| 67 | func WithBackoffMaxDuration(d time.Duration) Option { |
| 68 | return OptionFunc(func(q *options) { |
| 69 | q.backoffMaxDuration = d |
| 70 | }) |
| 71 | } |
| 72 | |
| 73 | // WithMaxRetry set max retry |
| 74 | func WithMaxRetry(n int) Option { |
no test coverage detected