Skip to content

Commit

Permalink
update jsonrpc dep
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguida committed Nov 12, 2023
1 parent db2d980 commit 1e6ee5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ path = "src/lib.rs"
bitcoincore-rpc-json = { version = "0.17.0", path = "../json" }

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

# Used for deserialization of JSON.
serde = "1"
Expand Down
4 changes: 2 additions & 2 deletions client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ impl Client {
/// Can only return [Err] when using cookie authentication.
pub fn new(url: &str, auth: Auth) -> Result<Self> {
let (user, pass) = auth.get_user_pass()?;
jsonrpc::client::Client::simple_http(url, user, pass, None)
jsonrpc::client::Client::simple_http(url, user, pass)
.map(|client| Client {
client,
})
Expand All @@ -1298,7 +1298,7 @@ impl Client {

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

0 comments on commit 1e6ee5f

Please sign in to comment.