-
Notifications
You must be signed in to change notification settings - Fork 345
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
Allow for unsafe synchronous creation of Tendermint34Client and Tendermint35Client #1358
Comments
#1359 |
The query we are doing there is very questionable anyways. Would be good to understand if it is still needed and why. What's your primary motivation for the proposed change?
I'd like to get this integrated in the main constructors and solve your issue at the same time. Adding more APIs is probably not necessary here. |
on the existing
In my opinion, health checking should be something the developer adds and not something baked into the creation of the class. However, the above comment is why I opted to add its own creation method. My primary motivations are to remove the async constructions and avoid waiting for the network request. Doing so will allow clients to query over grpc on load time rather than waiting for this async to resolve. |
@webmaster128 any thoughts on this? |
I tried removing the extra query again but it causes connection problems again. In #1380 you see and approach where the version query is moves from .create to .connect. You can use create directly then. It's still |
Currently the only way to use init the query client is asynchronously. When loading up a webpage relying on this client, all queries must wait on the
detectVersion
async function to complete and only then can the app use the query client. I suggest adding an unsafe creation method to the TendermintClient classes that skips this asyncdetectVersion
function.The text was updated successfully, but these errors were encountered: