Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ppca committed Oct 16, 2024
1 parent 8adaa71 commit 58d7056
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions chain-signatures/node/src/http_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,6 @@ async fn send_encrypted<U: IntoUrl>(
url.set_path("msg");
tracing::debug!(?from, to = %url, "making http request: sending encrypted message");
let action = || async {
<<<<<<< HEAD
let response = client
.post(url.clone())
.header("content-type", "application/json")
.json(&message)
<<<<<<< HEAD
<<<<<<< HEAD
=======
.timeout(Duration::from_millis(400))
>>>>>>> b340f1a0 (increase timeout)
=======
.timeout(Duration::from_millis(200))
>>>>>>> 26a2f6a4 (revert timeout, change presig timeout)
.send()
.await
.map_err(SendError::ReqwestClientError)?;
=======
let response = tokio::time::timeout(
request_timeout,
client
Expand All @@ -85,7 +68,6 @@ async fn send_encrypted<U: IntoUrl>(
.map_err(|_| SendError::Timeout(format!("send encrypted from {from:?} to {url}")))?
.map_err(SendError::ReqwestClientError)?;

>>>>>>> 611df5c0 (refactor: all param in env variables)
let status = response.status();
let response_bytes = response
.bytes()
Expand Down

0 comments on commit 58d7056

Please sign in to comment.