Skip to content

Commit

Permalink
Saner default timeout duration
Browse files Browse the repository at this point in the history
  • Loading branch information
jfldde committed Nov 14, 2024
1 parent 53cdf57 commit 31993a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bitcoin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ impl BitcoinNodeCluster {

async fn wait_for_rpc_ready(client: &Client, timeout: Option<Duration>) -> Result<()> {
let start = Instant::now();
let timeout = timeout.unwrap_or(Duration::from_secs(300));
let timeout = timeout.unwrap_or(Duration::from_secs(15));
while start.elapsed() < timeout {
match client.get_blockchain_info().await {
Ok(_) => return Ok(()),
Expand Down

0 comments on commit 31993a4

Please sign in to comment.