You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever you connect a wallet (e.g. via Keplr), Graz is clearly creating an unnecessary number of RPC clients internally, probably via CosmWasmClient.connect. If you look at network activity in the browser, you'll notice at least 4 concurrent requests to the RPC provider, targeting its "status" endpoint, which is what the CosmWasmClient.connect method automatically does each time it is called. This is not good. Depending on the RPC provider, this can trigger an HTTP 429 rate limit error. Instead, you guys really ought to manage a singleton client and make use of the batch RPC client available in cosmjs.
...
To Reproduce
Steps to reproduce the behavior:
Open dev console in browser.
Navigate to your demo app.
Open "Network Activity" tab
Connect wallet via Keplr.
Notice the exessive XHR requests sent to the RPC's "status" method.
Expected behavior
There should be only one request to the "status" method globally.
A clear and concise description of what you expected to happen.
...
Screenshots
The text was updated successfully, but these errors were encountered:
Describe the bug
Whenever you connect a wallet (e.g. via Keplr), Graz is clearly creating an unnecessary number of RPC clients internally, probably via
CosmWasmClient.connect
. If you look at network activity in the browser, you'll notice at least 4 concurrent requests to the RPC provider, targeting its "status" endpoint, which is what theCosmWasmClient.connect
method automatically does each time it is called. This is not good. Depending on the RPC provider, this can trigger an HTTP 429 rate limit error. Instead, you guys really ought to manage a singleton client and make use of the batch RPC client available in cosmjs....
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There should be only one request to the "status" method globally.
...
Screenshots
The text was updated successfully, but these errors were encountered: