Skip to content
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

Improved retry backoff #35

Merged

Conversation

ironbeer
Copy link
Collaborator

No description provided.

@ironbeer ironbeer requested a review from tak1827 July 19, 2024 09:26
return func() (time.Duration, time.Duration, int) {
// backoff delay: 0.1s, 0.8s, 6.4s, 51.2s, 409.6s(7m), 3276.8s(54m),
delay := 100 << (3 * attempts) * time.Millisecond
if delay <= 0 || delay > w.cfg.MaxRetryBackoff {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delay <= 0?
となるので、Overflowすることをコメントで残しておいてください。

@tak1827 tak1827 merged commit e00d315 into oasysgames:fix/verifier-retry Jul 19, 2024
1 check passed
tak1827 added a commit that referenced this pull request Jul 19, 2024
* verifier: expand retry limit

* add comment

* increment version

* include remaing time to log

* Improved retry backoff (#35)

* Deleted unused code

* Improved retry backoff

* comment case of overflow

---------

Co-authored-by: ironbeer <[email protected]>
@ironbeer ironbeer deleted the fix/verifier-retry-ironbeer branch August 22, 2024 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants