-
-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(NOTIFY-1171): fix account syncing performance (#4746)
## Explanation This PR solves various performance issues with user storage encryption / decryption + account syncing specific bugs. More info in the changelog. ## References - https://consensyssoftware.atlassian.net/browse/NOTIFY-1171 - https://consensyssoftware.atlassian.net/browse/NOTIFY-1177 ## Changelog ### `@metamask/profile-sync-controller` - **CHANGED**: batch GET / PUT now encrypts and decrypts sequentially in order to leverage cache - **FIXED**: don't save `nameLastUpdatedAt` to user storage if account name is a default name - **REMOVED**: remove `randomBytes` from the encryption mechanism - **REMOVED**: remove `waitForExpectedValue` and stop waiting for `AccountsController:accountAdded` callback ## 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 highlighted breaking changes using the "BREAKING" category above as appropriate - [x] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes
- Loading branch information
1 parent
8d61ac9
commit 991cace
Showing
7 changed files
with
36 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters