Skip to content

Commit

Permalink
lower timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ppca committed Oct 10, 2024
1 parent b70a537 commit d798f96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chain-signatures/node/src/http_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async fn send_encrypted<U: IntoUrl>(
.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)?;
Expand Down
4 changes: 2 additions & 2 deletions chain-signatures/node/src/mesh/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit d798f96

Please sign in to comment.