forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[r2r] Tendermint multiple rpcs optimization (#1568)
* branch from dev * trait RpcCommonOps * import HttpTransportNode after dev merge * wip * small changes in errors * wasm tests * use String in RpcClientInitError * iterate_over_urls func * wip * use iterate_over_urls func in get_rpc_client func. need to handle error prop better * wip * wip * leave WrongRpcClient in TendermintCoinRpcError * add RpcClientError for match * remove some notes * fmt * save dev state, some notes added * wip * wip * wip * impl RpcCommonOps for TendermintCoin, use just AsyncMutex * remove RpcCommonError and RpcClientEnum, use types in trait instead * use retain to filter valid urls * add some notes * return error if we have one or more invalid urls * remove pub and dead_code * use rotate_right * add rotate_left, into_iter * use slice::join, return MmResult * add check rpc_urls.is_empty
- Loading branch information
Showing
2 changed files
with
80 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters