diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:41:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:41:39 +0000 |
commit | 6696b6fca647cb1fe1ce74e8127090aa61482cab (patch) | |
tree | 75c2028bfcc4d098edf4679aa5dcefcdd45da00f /pkg/backoff/backoff.go | |
parent | Adding debian version 1.1.1-2. (diff) | |
download | icingadb-6696b6fca647cb1fe1ce74e8127090aa61482cab.tar.xz icingadb-6696b6fca647cb1fe1ce74e8127090aa61482cab.zip |
Merging upstream version 1.2.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pkg/backoff/backoff.go')
-rw-r--r-- | pkg/backoff/backoff.go | 4 |
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") |