From 6696b6fca647cb1fe1ce74e8127090aa61482cab Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 13:41:39 +0200 Subject: Merging upstream version 1.2.0. Signed-off-by: Daniel Baumann --- pkg/backoff/backoff.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/backoff/backoff.go') 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") -- cgit v1.2.3