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

Replace ETA with delay #28

Merged
merged 2 commits into from
Jun 7, 2024
Merged

Replace ETA with delay #28

merged 2 commits into from
Jun 7, 2024

Conversation

cameron-dunn-sublime
Copy link
Member

Using delays, converting to an ETA, and then back to a duration effectively floors the delay.

Using delays, converting to an ETA, and then back to a duration
effectively floors the delay.
@@ -5,29 +5,8 @@ import (
"time"
)

// ErrRetryTaskLater ...
type ErrRetryTaskLater struct {
Copy link
Member Author

Choose a reason for hiding this comment

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

We no longer use ErrRetryTaskLater -- we always use ErrKeepAndRetryTaskLater

@cameron-dunn-sublime cameron-dunn-sublime marked this pull request as ready for review June 7, 2024 17:42
return ErrRetryTaskLater{msg: msg, retryIn: retryIn}
}

// Retriable is interface that retriable errors should implement

Choose a reason for hiding this comment

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

thanks for fixing this cursed word most of all

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought that I'd invented this spelling and was sitting here wondering what was wrong with me, but I just checked and it actually wasn't me and I feel a whole lot better about myself now.

@cameron-dunn-sublime cameron-dunn-sublime merged commit ec43948 into master Jun 7, 2024
@cameron-dunn-sublime cameron-dunn-sublime deleted the cd.no-etas branch June 7, 2024 17:59
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