Skip to content
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

feat(901): log node url when operation fails #905

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

asenslime
Copy link
Contributor

Detailed description:
log node url when operation fails

Which issue(s) this PR fixes:
Fixes #901

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated

@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Merging #905 (9137bcc) into main (db69907) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #905      +/-   ##
==========================================
+ Coverage   64.05%   64.11%   +0.05%     
==========================================
  Files          86       86              
  Lines        6696     6707      +11     
==========================================
+ Hits         4289     4300      +11     
  Misses       2195     2195              
  Partials      212      212              
Flag Coverage Δ
unittests 64.11% <100.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
app/clients/evm/client_pool.go 69.64% <100.00%> (+1.56%) ⬆️

rokn
rokn previously approved these changes Aug 9, 2023
func (cp *ClientPool) getClient(idx int) client.EVM {
return cp.clients[idx%len(cp.clients)]
func (cp *ClientPool) getClient(idx int) (client.EVM, config.Evm) {
return cp.clients[idx%len(cp.clients)], cp.clientsConfigs[idx%len(cp.clientsConfigs)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I'd extract the index in a var to improve readability

Copy link
Collaborator

@Coiling-Dragon Coiling-Dragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@asenslime asenslime force-pushed the feature/log-rpc-client branch 2 times, most recently from b107240 to ae6a505 Compare August 9, 2023 12:03
@asenslime asenslime force-pushed the feature/log-rpc-client branch from ae6a505 to 9137bcc Compare August 9, 2023 12:06
@asenslime asenslime merged commit 663b30f into main Aug 9, 2023
@asenslime asenslime deleted the feature/log-rpc-client branch August 9, 2023 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update logging for the RPC errors to know which RPC was down.
3 participants