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

fix(datastore): register network callback only once in reachability monitor #2434

Merged
merged 3 commits into from
May 5, 2023

Conversation

eeatonaws
Copy link
Contributor

  • PR title and description conform to Pull Request guidelines.

Issue #, if available: #2430

Description of changes: Repeatedly saving many items with DataStore caused a ConnectivityManager.TooManyRequestsException due to registering a network callback each time there was a new subscriber. This PR registers the network callback once.

How did you test these changes?
Tested in a sample app and added a new unit test.

Documentation update required?

  • No
  • Yes (Please include a PR link for the documentation update)

General Checklist

  • Added Unit Tests
  • Added Integration Tests
  • Security oriented best practices and standards are followed (e.g. using input sanitization, principle of least privilege, etc)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@eeatonaws eeatonaws requested a review from a team as a code owner May 4, 2023 21:43
div5yesh
div5yesh previously approved these changes May 4, 2023
div5yesh
div5yesh previously approved these changes May 4, 2023
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