You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(account-tree-controller): do not enqueue single syncs during full syncs (#6651)
## Explanation
This PR prevents single sync events from being enqueued if a full sync
is already in progress.
This prevents unnecessary client side network calls.
## References
Fixes: https://consensyssoftware.atlassian.net/browse/MUL-901
## Checklist
- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs),
highlighting breaking changes as necessary
- [ ] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
Copy file name to clipboardExpand all lines: packages/account-tree-controller/CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
### Changed
11
+
12
+
- Single group sync events will not get enqueued anymore if a full sync is in progress ([#6651](https://github.com/MetaMask/core/pull/6651))
13
+
- This prevents too many unnecessary storage fetches (which would prevent being rate limited).
14
+
- This could rarely lead to inconsistencies until the next single updates or next full sync.
0 commit comments