Skip to content

Commit

Permalink
Fixing timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
sagojez committed Sep 18, 2024
1 parent 82ade65 commit 9cb79ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/algebra/secrets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ impl SecretsClient {
let secret = response.json().await;

let secret: Secret = secret.map_err(|err| {
warn!("Failed to deserialize response: {err}");
InternalError::serialize_error(&format!("Failed to deserialize response: {err}"), None)
})?;

Expand Down Expand Up @@ -126,6 +127,7 @@ impl SecretsClient {
})?;

response.json().await.map_err(|err| {
warn!("Failed to deserialize response: {err}");
InternalError::serialize_error(&format!("Failed to deserialize response: {err}"), None)
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl AppState {
let retry_policy =
ExponentialBackoff::builder().build_with_max_retries(config.max_retries());
let client = Client::builder()
.timeout(Duration::from_millis(config.timeout()))
.timeout(Duration::from_secs(config.timeout()))
.build()
.map_err(|e| InternalError::io_err(e.to_string().as_str(), None))?;
let client = ClientBuilder::new(client)
Expand Down

0 comments on commit 9cb79ca

Please sign in to comment.