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

Add ability to overwrite rpc timeout #31

Merged

Conversation

ZIMkaRU
Copy link
Member

@ZIMkaRU ZIMkaRU commented Aug 18, 2023

This PR adds ability to overwrite RPC timeout


The idea is to have httpRpcTimeout and wsRpcTimeout options that can be overwritten in the electron environment for complicated reports which can have a lot of internal calls to the BFX API that can take significant time
By default:

  • httpRpcTimeout will be used hardcoded 90s timeout, as earlier
  • wsRpcTimeout will be used hardcoded 90s timeout, earlier it was 10s

Also adds a fix to provide action field for error response by WS

@ZIMkaRU ZIMkaRU force-pushed the feature/add-ability-to-overwrite-rpc-timeout branch from 768dc0e to 6274875 Compare August 18, 2023 12:02
Copy link
Contributor

@ezewer ezewer left a comment

Choose a reason for hiding this comment

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

looks good to me!

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.

3 participants