From 7748dd119c0006f07b7ddf044c3600a1829658c2 Mon Sep 17 00:00:00 2001 From: Stanley Phu Date: Wed, 7 Aug 2024 13:50:16 -0700 Subject: [PATCH] Update minimum delay duration to 250ms The minimum delay time should be 250ms to account for the initial delay (500ms) with max negative jitter (250ms). --- pkg/retryablehttp/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/retryablehttp/client.go b/pkg/retryablehttp/client.go index 8cbdce40..2b4f72dc 100644 --- a/pkg/retryablehttp/client.go +++ b/pkg/retryablehttp/client.go @@ -10,7 +10,7 @@ import ( const MaxRetryAttempts = 3 const MinimumDelay = 500 -const MinimumDelayDuration = 500 * time.Millisecond +const MinimumDelayDuration = 250 * time.Millisecond const MaximumDelayDuration = 5 * time.Second const RandomizationFactor = 0.5 const BackoffMultiplier = 1.5