This commit is contained in:
Niklas Adolfsson
2021-11-30 19:41:31 +01:00
parent a45bf143bb
commit c2a9c75481
2 changed files with 13 additions and 11 deletions
+3 -4
View File
@@ -35,10 +35,10 @@ use core::{
use frame_metadata::RuntimeMetadataPrefixed;
pub use jsonrpsee::{
client_transport::ws::{
Receiver as WsReceiver,
Sender as WsSender,
Uri,
WsTransportClientBuilder,
Sender as WsSender,
Receiver as WsReceiver,
},
core_client::{
Client as RpcClient,
@@ -663,8 +663,7 @@ pub async fn build_ws_client(url: &str) -> Result<RpcClient, RpcError> {
}
async fn ws_transport(url: &str) -> (WsSender, WsReceiver) {
// TODO: fix unwraps because I'm lazy.
// fix unwraps because I'm lazy.
let url: Uri = url.parse().unwrap();
WsTransportClientBuilder::default()
.build(url)