summaryrefslogtreecommitdiffstats
path: root/pkg/backoff/backoff.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/backoff/backoff.go')
-rw-r--r--pkg/backoff/backoff.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/backoff/backoff.go b/pkg/backoff/backoff.go
index 6ce7bee..e79a1ee 100644
--- a/pkg/backoff/backoff.go
+++ b/pkg/backoff/backoff.go
@@ -14,10 +14,10 @@ type Backoff func(uint64) time.Duration
// It panics if min >= max.
func NewExponentialWithJitter(min, max time.Duration) Backoff {
if min <= 0 {
- min = time.Millisecond * 100
+ min = 100 * time.Millisecond
}
if max <= 0 {
- max = time.Second * 10
+ max = 10 * time.Second
}
if min >= max {
panic("max must be larger than min")