-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update module github.com/cenkalti/backoff/v4 to v5 #11989
base: main
Are you sure you want to change the base?
Conversation
8de667d
to
6757736
Compare
6757736
to
f31015c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #11989 +/- ##
==========================================
- Coverage 91.55% 91.54% -0.02%
==========================================
Files 467 467
Lines 25652 25657 +5
==========================================
+ Hits 23485 23487 +2
- Misses 1768 1770 +2
- Partials 399 400 +1 ☔ View full report in Codecov by Sentry. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
f31015c
to
adca17d
Compare
Signed-off-by: Bogdan Drutu <[email protected]>
adca17d
to
758175a
Compare
@@ -111,7 +111,13 @@ func (rs *retrySender) Send(ctx context.Context, req request.Request) error { | |||
backoffDelay = max(backoffDelay, throttleErr.delay) | |||
} | |||
|
|||
if deadline, has := ctx.Deadline(); has && time.Until(deadline) < backoffDelay { | |||
nextRetryTime := time.Now().Add(backoffDelay) | |||
if !maxElapsedTime.IsZero() && maxElapsedTime.Before(nextRetryTime) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a separate bug? Is it covered by tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
V5 does not have this logic supported.
No description provided.