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

feat: retry ignore specified errors #3808

Merged
merged 1 commit into from
Mar 2, 2024
Merged

Conversation

fearlessfei
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Mar 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.55%. Comparing base (8e97c58) to head (81f0039).

Additional details and impacted files
Files Coverage Δ
core/fx/retry.go 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

times int
interval time.Duration
timeout time.Duration
IgnoreErrors []error
Copy link
Contributor

Choose a reason for hiding this comment

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

Better to use 'ignoreErrors'.

@@ -103,6 +110,13 @@ func WithTimeout(timeout time.Duration) RetryOption {
}
}

// WithIgnoreErrors Ignore the specified errors
func WithIgnoreErrors(IgnoreErrors []error) RetryOption {
Copy link
Contributor

Choose a reason for hiding this comment

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

Better to use 'ignoreErrors'.

@kevwan kevwan merged commit e38036c into zeromicro:master Mar 2, 2024
6 checks passed
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