Skip to content

Commit

Permalink
fix: prevent account sync from doing multiple syncs in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuartu committed Nov 7, 2024
1 parent 7798ef4 commit 6d4e78b
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@
"@metamask/post-message-stream": "^8.0.0",
"@metamask/ppom-validator": "0.35.1",
"@metamask/preinstalled-example-snap": "^0.2.0",
"@metamask/profile-sync-controller": "^0.9.7",
"@metamask/profile-sync-controller": "npm:@metamask-previews/profile-sync-controller@0.9.7-preview-0327163",
"@metamask/providers": "^14.0.2",
"@metamask/queued-request-controller": "^7.0.0",
"@metamask/rate-limit-controller": "^6.0.0",
Expand Down
119 changes: 112 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5068,6 +5068,19 @@ __metadata:
languageName: node
linkType: hard

"@metamask/eth-block-tracker@npm:^11.0.2":
version: 11.0.2
resolution: "@metamask/eth-block-tracker@npm:11.0.2"
dependencies:
"@metamask/eth-json-rpc-provider": "npm:^4.1.5"
"@metamask/safe-event-emitter": "npm:^3.1.1"
"@metamask/utils": "npm:^9.1.0"
json-rpc-random-id: "npm:^1.0.1"
pify: "npm:^5.0.0"
checksum: 10/11d22bd86056401aa41eff5a32e862f3644eaf03040d8aa54a95cb0c1dfd3e3ce7e650c25efabbe0954cc6ba5f92172c338b518df84f73c4601c4bbc960b588a
languageName: node
linkType: hard

"@metamask/eth-block-tracker@npm:^9.0.2":
version: 9.0.3
resolution: "@metamask/eth-block-tracker@npm:9.0.3"
Expand Down Expand Up @@ -5107,6 +5120,18 @@ __metadata:
languageName: node
linkType: hard

"@metamask/eth-json-rpc-infura@npm:^10.0.0":
version: 10.0.0
resolution: "@metamask/eth-json-rpc-infura@npm:10.0.0"
dependencies:
"@metamask/eth-json-rpc-provider": "npm:^4.1.5"
"@metamask/json-rpc-engine": "npm:^10.0.0"
"@metamask/rpc-errors": "npm:^7.0.0"
"@metamask/utils": "npm:^9.1.0"
checksum: 10/17e0147ff86c48107983035e9bda4d16fba321ee0e29733347e9338a4c795c506a2ffd643c44c9d5334886696412cf288f852d06311fed0d76edc8847ee6b8de
languageName: node
linkType: hard

"@metamask/eth-json-rpc-infura@npm:^9.1.0":
version: 9.1.0
resolution: "@metamask/eth-json-rpc-infura@npm:9.1.0"
Expand Down Expand Up @@ -5158,6 +5183,25 @@ __metadata:
languageName: node
linkType: hard

"@metamask/eth-json-rpc-middleware@npm:^15.0.0":
version: 15.0.0
resolution: "@metamask/eth-json-rpc-middleware@npm:15.0.0"
dependencies:
"@metamask/eth-block-tracker": "npm:^11.0.1"
"@metamask/eth-json-rpc-provider": "npm:^4.1.5"
"@metamask/eth-sig-util": "npm:^7.0.3"
"@metamask/json-rpc-engine": "npm:^10.0.0"
"@metamask/rpc-errors": "npm:^7.0.0"
"@metamask/utils": "npm:^9.1.0"
"@types/bn.js": "npm:^5.1.5"
bn.js: "npm:^5.2.1"
klona: "npm:^2.0.6"
pify: "npm:^5.0.0"
safe-stable-stringify: "npm:^2.4.3"
checksum: 10/3c48d34264c695535f2b4e819fb602d835b6ed37309116a06d04d1b706a7335e0205cd4ccdbf1d3e9dc15ebf40d88954a9a2dc18a91f223dcd6d6392e026a5e9
languageName: node
linkType: hard

"@metamask/eth-json-rpc-middleware@patch:@metamask/eth-json-rpc-middleware@npm%3A14.0.1#~/.yarn/patches/@metamask-eth-json-rpc-middleware-npm-14.0.1-b6c2ccbe8c.patch":
version: 14.0.1
resolution: "@metamask/eth-json-rpc-middleware@patch:@metamask/eth-json-rpc-middleware@npm%3A14.0.1#~/.yarn/patches/@metamask-eth-json-rpc-middleware-npm-14.0.1-b6c2ccbe8c.patch::version=14.0.1&hash=96e7e0"
Expand Down Expand Up @@ -5212,6 +5256,19 @@ __metadata:
languageName: node
linkType: hard

"@metamask/eth-json-rpc-provider@npm:^4.1.5, @metamask/eth-json-rpc-provider@npm:^4.1.6":
version: 4.1.6
resolution: "@metamask/eth-json-rpc-provider@npm:4.1.6"
dependencies:
"@metamask/json-rpc-engine": "npm:^10.0.1"
"@metamask/rpc-errors": "npm:^7.0.1"
"@metamask/safe-event-emitter": "npm:^3.0.0"
"@metamask/utils": "npm:^10.0.0"
uuid: "npm:^8.3.2"
checksum: 10/aeec2c362a5386357e9f8c707da9baa4326e83889633723656b6801b6461ea8ab8f020b0d9ed0bbc2d8fd6add4af4c99cc9c9a1cbedca267a033a9f19da41200
languageName: node
linkType: hard

"@metamask/eth-ledger-bridge-keyring@npm:^3.0.1":
version: 3.0.1
resolution: "@metamask/eth-ledger-bridge-keyring@npm:3.0.1"
Expand Down Expand Up @@ -5596,6 +5653,27 @@ __metadata:
languageName: node
linkType: hard

"@metamask/keyring-controller@npm:^17.3.1":
version: 17.3.1
resolution: "@metamask/keyring-controller@npm:17.3.1"
dependencies:
"@ethereumjs/util": "npm:^8.1.0"
"@keystonehq/metamask-airgapped-keyring": "npm:^0.14.1"
"@metamask/base-controller": "npm:^7.0.2"
"@metamask/browser-passworder": "npm:^4.3.0"
"@metamask/eth-hd-keyring": "npm:^7.0.4"
"@metamask/eth-sig-util": "npm:^8.0.0"
"@metamask/eth-simple-keyring": "npm:^6.0.5"
"@metamask/keyring-api": "npm:^8.1.3"
"@metamask/message-manager": "npm:^11.0.1"
"@metamask/utils": "npm:^10.0.0"
async-mutex: "npm:^0.5.0"
ethereumjs-wallet: "npm:^1.0.1"
immer: "npm:^9.0.6"
checksum: 10/167608de873566a28f0fa8f6e88ee2f57809f29289fcd7787f16589f42f9fa076a73a45b36cc1e0bbcc0f6d20b40a44c1d1f9b86a2eaebe15428d8b9cb46c753
languageName: node
linkType: hard

"@metamask/logging-controller@npm:^6.0.0":
version: 6.0.0
resolution: "@metamask/logging-controller@npm:6.0.0"
Expand Down Expand Up @@ -5691,6 +5769,31 @@ __metadata:
languageName: node
linkType: hard

"@metamask/network-controller@npm:^22.0.1":
version: 22.0.1
resolution: "@metamask/network-controller@npm:22.0.1"
dependencies:
"@metamask/base-controller": "npm:^7.0.2"
"@metamask/controller-utils": "npm:^11.4.2"
"@metamask/eth-block-tracker": "npm:^11.0.2"
"@metamask/eth-json-rpc-infura": "npm:^10.0.0"
"@metamask/eth-json-rpc-middleware": "npm:^15.0.0"
"@metamask/eth-json-rpc-provider": "npm:^4.1.6"
"@metamask/eth-query": "npm:^4.0.0"
"@metamask/json-rpc-engine": "npm:^10.0.1"
"@metamask/rpc-errors": "npm:^7.0.1"
"@metamask/swappable-obj-proxy": "npm:^2.2.0"
"@metamask/utils": "npm:^10.0.0"
async-mutex: "npm:^0.5.0"
immer: "npm:^9.0.6"
loglevel: "npm:^1.8.1"
reselect: "npm:^5.1.1"
uri-js: "npm:^4.4.1"
uuid: "npm:^8.3.2"
checksum: 10/d5ef29c3f2118a5641338a56934446f191815b6c89ca4a3b3f75f071645d075ec8661645ad843b792e6b8c957ccc09695d1890a22dcfec87866172cac45999bd
languageName: node
linkType: hard

"@metamask/network-controller@patch:@metamask/network-controller@npm%3A21.0.0#~/.yarn/patches/@metamask-network-controller-npm-21.0.0-559aa8e395.patch":
version: 21.0.0
resolution: "@metamask/network-controller@patch:@metamask/network-controller@npm%3A21.0.0#~/.yarn/patches/@metamask-network-controller-npm-21.0.0-559aa8e395.patch::version=21.0.0&hash=1a5039"
Expand Down Expand Up @@ -5989,13 +6092,14 @@ __metadata:
languageName: node
linkType: hard

"@metamask/profile-sync-controller@npm:^0.9.7":
version: 0.9.7
resolution: "@metamask/profile-sync-controller@npm:0.9.7"
"@metamask/profile-sync-controller@npm:@metamask-previews/profile-sync-controller@0.9.7-preview-0327163":
version: 0.9.7-preview-0327163
resolution: "@metamask-previews/profile-sync-controller@npm:0.9.7-preview-0327163"
dependencies:
"@metamask/base-controller": "npm:^7.0.1"
"@metamask/base-controller": "npm:^7.0.2"
"@metamask/keyring-api": "npm:^8.1.3"
"@metamask/keyring-controller": "npm:^17.2.2"
"@metamask/keyring-controller": "npm:^17.3.1"
"@metamask/network-controller": "npm:^22.0.1"
"@metamask/snaps-sdk": "npm:^6.5.0"
"@metamask/snaps-utils": "npm:^8.1.1"
"@noble/ciphers": "npm:^0.5.2"
Expand All @@ -6006,8 +6110,9 @@ __metadata:
peerDependencies:
"@metamask/accounts-controller": ^18.1.1
"@metamask/keyring-controller": ^17.2.0
"@metamask/network-controller": ^22.0.0
"@metamask/snaps-controllers": ^9.7.0
checksum: 10/e53888533b2aae937bbe4e385dca2617c324b34e3e60af218cd98c26d514fb725f4c67b649f126e055f6a50a554817b229d37488115b98d70e8aee7b3a910bde
checksum: 10/257449c4b42b554b1a3828b503c895316f7c674798e2f9932678b3ac84d7ad536c037c8afa0ad06f01ee973f99cda696051bb41f0b6dce2f70b84242bddf40d9
languageName: node
linkType: hard

Expand Down Expand Up @@ -26453,7 +26558,7 @@ __metadata:
"@metamask/ppom-validator": "npm:0.35.1"
"@metamask/preferences-controller": "npm:^13.0.2"
"@metamask/preinstalled-example-snap": "npm:^0.2.0"
"@metamask/profile-sync-controller": "npm:^0.9.7"
"@metamask/profile-sync-controller": "npm:@metamask-previews/profile-sync-controller@0.9.7-preview-0327163"
"@metamask/providers": "npm:^14.0.2"
"@metamask/queued-request-controller": "npm:^7.0.0"
"@metamask/rate-limit-controller": "npm:^6.0.0"
Expand Down

0 comments on commit 6d4e78b

Please sign in to comment.