Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Problem: (CRO-622) Raw call function of WebsocketRpcClient cannot be …
Browse files Browse the repository at this point in the history
…accessed from other crates

Solution: Made `call` and `call_batch` functions `pub`
  • Loading branch information
devashishdxt committed Dec 5, 2019
1 parent e29f07c commit 9d984c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client-common/src/tendermint/websocket_rpc_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl WebsocketRpcClient {
}

/// Makes an RPC call and deserializes response
fn call<T>(&self, method: &str, params: &[Value]) -> Result<T>
pub fn call<T>(&self, method: &str, params: &[Value]) -> Result<T>
where
for<'de> T: Deserialize<'de>,
{
Expand All @@ -232,7 +232,7 @@ impl WebsocketRpcClient {
}

/// Makes RPC call in batch and deserializes responses
fn call_batch<T>(&self, params: Vec<(&str, Vec<Value>)>) -> Result<Vec<T>>
pub fn call_batch<T>(&self, params: Vec<(&str, Vec<Value>)>) -> Result<Vec<T>>
where
for<'de> T: Deserialize<'de>,
{
Expand Down

0 comments on commit 9d984c1

Please sign in to comment.