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 ApolloClient.Builder.retryOnErrorInterceptor #5989

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

martinbonnin
Copy link
Contributor

@martinbonnin martinbonnin commented Jun 24, 2024

Closes #5982

@martinbonnin martinbonnin requested a review from BoD as a code owner June 24, 2024 08:39
Copy link

netlify bot commented Jun 24, 2024

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit 65e8489
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/667930e1fded3200084b69fd

Comment on lines -40 to +43
networkMonitor(NetworkMonitor(InstrumentationRegistry.getInstrumentation().context))
retryOnErrorInterceptor(
RetryOnErrorInterceptor(NetworkMonitor(InstrumentationRegistry.getInstrumentation().context))
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed ApolloClient.Builder.networkMonitor(NetworkMonitor) as part of this PR. It makes the call site a bit more verbose but allow for better locality as the NetworkMonitor isn't used outside the RetryOnErrorInterceptor

Copy link
Contributor

@BoD BoD left a comment

Choose a reason for hiding this comment

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

👍

@martinbonnin martinbonnin merged commit c31180c into main Jun 24, 2024
9 checks passed
@martinbonnin martinbonnin deleted the set-retry-interceptor branch June 24, 2024 09:52
BoD pushed a commit to BoD/apollo-kotlin that referenced this pull request Jul 1, 2024
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.

RetryOnNetworkErrorInterceptor should be configurable
2 participants