diff --git a/chain-signatures/node/src/cli.rs b/chain-signatures/node/src/cli.rs index c74f2b23..15122674 100644 --- a/chain-signatures/node/src/cli.rs +++ b/chain-signatures/node/src/cli.rs @@ -136,7 +136,7 @@ fn is_running_on_gcp() -> bool { let resp = reqwest::blocking::Client::new() .get("http://metadata.google.internal/computeMetadata/v1/instance/id") .header("Metadata-Flavor", "Google") - .timeout(Duration::from_secs(1)) + .timeout(Duration::from_millis(200)) .send(); match resp { diff --git a/chain-signatures/node/src/http_client.rs b/chain-signatures/node/src/http_client.rs index 147392bc..d76ae921 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(2)) + .timeout(Duration::from_millis(200)) .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 4367102f..075f70cf 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(1)) + .timeout(Duration::from_millis(200)) .send() .await else { @@ -102,7 +102,7 @@ impl Pool { let Ok(resp) = self .http .get(url) - .timeout(Duration::from_secs(1)) + .timeout(Duration::from_millis(200)) .send() .await else {