Commit Graph

9 Commits

Author SHA1 Message Date
Andrey Bocharnikov 7f262312bd fix_: address PR comments 2024-10-11 21:02:06 +04:00
Andrey Bocharnikov 4da36650b9 feat(wallet)_: Send a new event 'wallet-blockchain-health-changed' #5923
Keeping old event for the backward compatibility
2024-10-11 21:02:06 +04:00
Andrea Maria Piana e07182b3f3 fix_: Don't count error rate for circuit breaker on cancel and handle
not found
2024-08-20 15:26:28 +01:00
Anthony Laibe 7c9de0429e fix_: last command of circuit breaker should always run
When added more command to the circuit breaker, we forget to keep a real fallback mechanism,
the last call should ALWAYS be made.

As such, i am manually skipping to use circuit breaker in that case.
2024-08-20 15:26:16 +01:00
IvanBelyakoff bf6c0c4cc6
fix(wallet)_: fix provider down event happening too often (#5595)
* fix(wallet)_: fix provider down event happening too often

- handle context cancelled error
- do not count expected errors when calling tokenURI as providers
  errors
- use archival not for optimism (was silently added by Grove makeing the
  old URL non-archival)

Closes #5555

* test(wallet)_: add test for collectibles manager to verify that main
circuit is not tripped calling by tokenURI method
2024-07-29 18:07:43 +01:00
Ivan Belyakov 94b2017226 test(wallet)_: fix flaky circuit breaker test on window timeout
fix racing condition on init of RPC stats
2024-07-17 18:06:48 +02:00
Ivan Belyakov 4b19845592 chore(wallet)_: Added a test for Market manager FetchTokenMarketValues
Added a nil/empty command test for circuit breaker
2024-07-05 12:39:19 +01:00
Ivan Belyakov 0e10b38e4b fix(wallet)_: fix circuit breaker to use health checks for fallback
functions as well.

Add tests, fix tests failing under stress due to name clashes
2024-07-05 12:39:19 +01:00
Ivan Belyakov 7d7fa07754 feat: implemented a circuit breaker wrapper around hystrix to allow
multiple fallbacks
2024-03-18 11:49:03 +01:00