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

chore: add retries for network-related failures #22

Merged
merged 7 commits into from
Aug 16, 2024

Conversation

nikolay-komarevskiy
Copy link
Contributor

@nikolay-komarevskiy nikolay-komarevskiy commented Aug 12, 2024

When ic-gateway is used with API BNs, requests failing with network-related errors could/should be retried with a different API BN url. This PR introduces such retry logic.

Retry logic is applied for both use cases: with and without API BN discovery service.

@nikolay-komarevskiy nikolay-komarevskiy marked this pull request as ready for review August 12, 2024 14:10
@nikolay-komarevskiy nikolay-komarevskiy requested a review from a team as a code owner August 12, 2024 14:10
src/cli.rs Outdated Show resolved Hide resolved
@nikolay-komarevskiy nikolay-komarevskiy merged commit 32e00ef into main Aug 16, 2024
3 checks passed
@nikolay-komarevskiy nikolay-komarevskiy deleted the komarevskiy/ic-gateway-add-retries branch August 16, 2024 08:55
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.

3 participants