Commit Graph

6 Commits

Author SHA1 Message Date
Andrea Maria Piana 605ceae989 fix_: Don't count error rate for circuit breaker on cancel and handle
not found
2024-08-20 14:24:41 +00:00
Anthony Laibe c08d10b8ab 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 14:24:41 +00:00
Icaro Motta a57055f43b
fix(wallet)_: fix provider down event happening too often (#5595) (#5649)
* 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

Co-authored-by: IvanBelyakoff <ivan.belyakov.job@gmail.com>
2024-08-01 19:29:05 -03: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