Skip to content

Commit

Permalink
Increase default DA timeout on backend
Browse files Browse the repository at this point in the history
Signed-off-by: carlosthe19916 <[email protected]>
  • Loading branch information
carlosthe19916 committed Mar 15, 2024
1 parent 0585db5 commit 0c6f8a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spog/api/src/endpoints/analyze.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use bombastic_model::prelude::SBOM;
use bytes::Bytes;
use futures::Stream;
use http::{header, StatusCode};
use std::time::Duration;
use tracing::instrument;
use trustification_analytics::Tracker;
use trustification_common::error::ErrorInformation;
Expand Down Expand Up @@ -70,7 +71,11 @@ pub struct CrdaClient {

impl CrdaClient {
pub fn new(url: Url, snyk_token: Option<String>) -> Self {
let client = reqwest::Client::new();
let client = reqwest::Client::builder()
.timeout(Duration::from_secs(60 * 3))
.build()
.expect("Could not create the crda client");

Self {
client,
url,
Expand Down

0 comments on commit 0c6f8a3

Please sign in to comment.