Skip to content

Commit

Permalink
update to v20.03
Browse files Browse the repository at this point in the history
  • Loading branch information
haerdib committed Dec 8, 2023
1 parent 7c693da commit 90f55b7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 23 deletions.
29 changes: 9 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ url = { version = "2.0.0", optional = true }
# websocket dependent features
futures = { version = "0.3", optional = true }
tokio = { version = "1.34", optional = true }
jsonrpsee = { version = "0.17", optional = true, features = ["async-client", "client-ws-transport-native-tls", "jsonrpsee-types"] }
jsonrpsee = { version = "0.20", optional = true, features = ["async-client", "client-ws-transport-native-tls", "jsonrpsee-types"] }
tungstenite = { version = "0.21", optional = true, features = ["native-tls"] }
ws = { version = "0.9.2", optional = true, features = ["ssl"] }

Expand Down
4 changes: 2 additions & 2 deletions src/rpc/jsonrpsee_client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use crate::rpc::{Error, Request, Result, RpcParams, Subscribe};
use futures::executor::block_on;
use jsonrpsee::{
client_transport::ws::{Uri, WsTransportClientBuilder},
client_transport::ws::{Url, WsTransportClientBuilder},
core::{
client::{Client, ClientBuilder, ClientT, SubscriptionClientT},
traits::ToRpcParams,
Expand Down Expand Up @@ -44,7 +44,7 @@ impl JsonrpseeClient {
}

pub async fn async_new(url: &str) -> Result<Self> {
let uri: Uri = url.parse().map_err(|e| Error::Client(Box::new(e)))?;
let uri: Url = url.parse().map_err(|e| Error::Client(Box::new(e)))?;
let (tx, rx) = WsTransportClientBuilder::default()
.build(uri)
.await
Expand Down

0 comments on commit 90f55b7

Please sign in to comment.