Skip to content

Commit

Permalink
Update minimum delay duration to 250ms
Browse files Browse the repository at this point in the history
The minimum delay time should be 250ms to account for the initial delay (500ms) with max negative jitter (250ms).
  • Loading branch information
stanleyphu committed Aug 7, 2024
1 parent 0fefa99 commit 7748dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/retryablehttp/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7748dd1

Please sign in to comment.