-
Notifications
You must be signed in to change notification settings - Fork 92
feat: add circuit breaker configuration to more transaction service endpoints #2904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
66275a3 to
7390ebe
Compare
…t transaction by ID endpoints tests
| circuitBreaker: { | ||
| key: CircuitBreakerKeys.getTransactionServiceKey(chainId), | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpic: i just realized, that as we are using the same objects across these tests and most values are static, we could also create const with them and reuse instead of passing to each test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But then you’d need to pass the chainId. How would you handle that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for tests there is one chainId = 1 created at the top, no? so nothing changes from test to test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
im fine with keeping it explicit as we do with other params, just with all that refactoring i have been doing i cant unsee the duplication haha :) it is good to go from my side
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, for most of them yeah it's 1 except for one test that uses hoodiChainId.
Summary
This PR enables the circuit breaker for additional transaction service endpoints.
Changes