diff --git a/chain-signatures/node/src/http_client.rs b/chain-signatures/node/src/http_client.rs index 406db32f..147392bc 100644 --- a/chain-signatures/node/src/http_client.rs +++ b/chain-signatures/node/src/http_client.rs @@ -46,7 +46,7 @@ async fn send_encrypted( .post(url.clone()) .header("content-type", "application/json") .json(&message) - .timeout(Duration::from_secs(5)) + .timeout(Duration::from_secs(2)) .send() .await .map_err(SendError::ReqwestClientError)?; diff --git a/chain-signatures/node/src/mesh/connection.rs b/chain-signatures/node/src/mesh/connection.rs index 12098eeb..4367102f 100644 --- a/chain-signatures/node/src/mesh/connection.rs +++ b/chain-signatures/node/src/mesh/connection.rs @@ -52,7 +52,7 @@ impl Pool { let Ok(resp) = self .http .get(url.clone()) - .timeout(Duration::from_secs(2)) + .timeout(Duration::from_secs(1)) .send() .await else { @@ -102,7 +102,7 @@ impl Pool { let Ok(resp) = self .http .get(url) - .timeout(Duration::from_secs(2)) + .timeout(Duration::from_secs(1)) .send() .await else {