chore(deps): bump jsonrpsee v0.20 to v0.21 (#1347)

* chore(deps): bump jsonrpsee v0.20 to v0.21

* fix build

* update Cargo.lock in wasm-tests
This commit is contained in:
Niklas Adolfsson
2024-01-12 10:48:44 +01:00
committed by GitHub
parent fc5a18aaa0
commit ee95026186
13 changed files with 1093 additions and 794 deletions
+6 -2
View File
@@ -101,12 +101,16 @@ async fn run() {
// Use jsonrpsee to obtain metadata from the node.
mod client {
use jsonrpsee::client_transport::ws::EitherStream;
pub use jsonrpsee::{
client_transport::ws::{Receiver, Sender, Url, WsTransportClientBuilder},
core::{client::Client, Error},
client_transport::ws::{self, Url, WsTransportClientBuilder},
core::client::{Client, Error},
};
use tokio_util::compat::Compat;
pub use jsonrpsee::core::{client::ClientT, rpc_params};
pub type Sender = ws::Sender<Compat<EitherStream>>;
pub type Receiver = ws::Receiver<Compat<EitherStream>>;
/// Build WS RPC client from URL
pub async fn build(url: &str) -> Result<Client, Error> {