update jsonrpsee (#251)

This commit is contained in:
Niklas Adolfsson
2021-03-16 17:00:32 +01:00
committed by GitHub
parent b37d8ecd5a
commit 3b362fb072
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -165,7 +165,7 @@ use substrate_subxt_client::SubxtClient;
#[derive(Clone)]
pub enum RpcClient {
/// JSONRPC client WebSocket transport.
WebSocket(WsClient),
WebSocket(Arc<WsClient>),
/// JSONRPC client HTTP transport.
// NOTE: Arc because `HttpClient` is not clone.
Http(Arc<HttpClient>),
@@ -224,7 +224,7 @@ impl RpcClient {
impl From<WsClient> for RpcClient {
fn from(client: WsClient) -> Self {
RpcClient::WebSocket(client)
RpcClient::WebSocket(Arc::new(client))
}
}