Skip to content

Commit

Permalink
v0.19.4
Browse files Browse the repository at this point in the history
- increase timeout to 300 seconds
  • Loading branch information
Danconnolly committed Mar 9, 2024
1 parent 7c299f5 commit 89a2fd5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.19.4
- increase timeout to 300 seconds

# 0.19.3
- correct exposure of types from dependency
- bitcoinsv v0.2.4
Expand Down
4 changes: 2 additions & 2 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 client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bitcoinsv-rpc"
version = "0.19.3"
version = "0.19.4"
authors = [
"Daniel Connolly <[email protected]>"
]
Expand Down
3 changes: 3 additions & 0 deletions client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ use bitcoinsv_rpc_json::GetNetworkInfoResult;
use crate::error::*;
use crate::json;

const DEFAULT_TIMEOUT_SECONDS: u64 = 300;

/// Crate-specific Result type, shorthand for `std::result::Result` with our
/// crate-specific Error type;
pub type Result<T> = result::Result<T, Error>;
Expand Down Expand Up @@ -511,6 +513,7 @@ impl Client {
/// Can only return [Err] when using cookie authentication.
pub fn new(url: &str, auth: Auth) -> Result<Self> {
let b = jsonrpc::minreq_http::MinreqHttpTransport::builder()
.timeout(std::time::Duration::from_secs(DEFAULT_TIMEOUT_SECONDS))
.url(url)?;
let b = match auth {
Auth::None => b,
Expand Down
2 changes: 1 addition & 1 deletion json/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bitcoinsv-rpc-json"
version = "0.19.3"
version = "0.19.4"
authors = [
"Daniel Connolly <[email protected]>",
]
Expand Down

0 comments on commit 89a2fd5

Please sign in to comment.