Skip to content

Commit c428689

Browse files
committed
Retry failed token price updates
The `token-prices-service` will now retry token price updates if they fail. The retry strategy is designed to let the API recover if it is experiencing high traffic volumes. The service now requires state in order to hold onto the retry policy. It has been converted to a class for that reason. This required no changes to the abstract price service type or to the `TokenRatesController`. Closes #2084
1 parent aea9bac commit c428689

File tree

6 files changed

+494
-24
lines changed

6 files changed

+494
-24
lines changed

packages/assets-controllers/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"@metamask/utils": "^8.2.0",
4949
"@types/uuid": "^8.3.0",
5050
"async-mutex": "^0.2.6",
51+
"cockatiel": "3.1.1",
5152
"ethereumjs-util": "^7.0.10",
5253
"lodash": "^4.17.21",
5354
"multiformats": "^9.5.2",

0 commit comments

Comments
 (0)