Skip to content

Commit 1e6ee5f

Browse files
committed
update jsonrpc dep
1 parent db2d980 commit 1e6ee5f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

client/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ path = "src/lib.rs"
2222
bitcoincore-rpc-json = { version = "0.17.0", path = "../json" }
2323

2424
log = "0.4.5"
25-
jsonrpc = "0.14.0"
25+
# jsonrpc = "0.14.0"
26+
# jsonrpc = { path = "../../rust-jsonrpc" }
27+
jsonrpc = { git = "https://github.com/chrisguida/rust-jsonrpc", branch = "feat/simple-http-timeout" }
2628

2729
# Used for deserialization of JSON.
2830
serde = "1"

client/src/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ impl Client {
12891289
/// Can only return [Err] when using cookie authentication.
12901290
pub fn new(url: &str, auth: Auth) -> Result<Self> {
12911291
let (user, pass) = auth.get_user_pass()?;
1292-
jsonrpc::client::Client::simple_http(url, user, pass, None)
1292+
jsonrpc::client::Client::simple_http(url, user, pass)
12931293
.map(|client| Client {
12941294
client,
12951295
})
@@ -1298,7 +1298,7 @@ impl Client {
12981298

12991299
pub fn new_with_timeout(url: &str, auth: Auth, timeout: Duration) -> Result<Self> {
13001300
let (user, pass) = auth.get_user_pass()?;
1301-
jsonrpc::client::Client::simple_http(url, user, pass, Some(timeout))
1301+
jsonrpc::client::Client::simple_http_with_timeout(url, user, pass, Some(timeout))
13021302
.map(|client| Client {
13031303
client,
13041304
})

0 commit comments

Comments
 (0)