WithBackoffFactor set backoff factor
(f float64)
| 58 | |
| 59 | // WithBackoffFactor set backoff factor |
| 60 | func WithBackoffFactor(f float64) Option { |
| 61 | return OptionFunc(func(q *options) { |
| 62 | q.backoffFactor = f |
| 63 | }) |
| 64 | } |
| 65 | |
| 66 | // WithBackoffMaxDuration set backoff max duration |
| 67 | func WithBackoffMaxDuration(d time.Duration) Option { |
no test coverage detected