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

Add config option to provide a regex to decide status code that can be retried #99

Merged

Conversation

Chengxuan
Copy link
Contributor

Add an option so that a regex can be used to determine which error status code should be retried to avoid unnecessary retries causing further delay and traffic.

There is already an OnCheckRetry function available for the developer using the library to support this feature. However this feature seems to be a standard configuration that would benefit all consumers. So I'm proposing to add it to this common lib.

@nguyer nguyer merged commit ba4df60 into hyperledger:main Sep 14, 2023
2 checks passed
@nguyer nguyer deleted the ffresty-require-code-configuration branch September 14, 2023 15:42
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