-
Notifications
You must be signed in to change notification settings - Fork 0
Retries for HTTP calls via Polly lib #352
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR integrates the Polly library to add retry logic for HTTP calls and blockchain operations across the application. The retry mechanism is implemented via the IRetryExecutor interface from the Poolz.Finance.CSharp.Polly.Extensions package.
- Added retry wrapper to GraphQL queries in Strapi client
- Added retry wrapper to ERC20 token cache operations
- Added retry wrapper to NFT supply range checks and pool info fetching
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/MetaDataAPI/MetaDataAPI.csproj | Adds the Polly extensions package dependency |
| src/MetaDataAPI/DefaultServiceProvider.cs | Registers IRetryExecutor as a singleton service |
| src/MetaDataAPI/Services/Strapi/StrapiClient.cs | Wraps GraphQL queries with retry logic using ExecuteAsync |
| src/MetaDataAPI/Services/Erc20/Erc20Provider.cs | Wraps cache operations with retry logic using Execute |
| src/MetaDataAPI/Routing/Requests/GetMetadataRequestHandler.cs | Wraps blockchain calls with retry logic and fixes error response parameter (bug introduced) |
| src/MetaDataAPI/Services/Http/FailureOnlyLoggingHandler.cs | Renames constructor parameter from inner to innerHandler for clarity |
| tests/MetaDataAPI.Tests/Services/Erc20/Erc20ProviderTests.cs | Updates test to mock the new IRetryExecutor dependency |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
DiagramsDiagrams summary
|
SummarySummary
CoverageMetaDataAPI - 31.5%
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.