Loading Containerfile +1 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ ARG GIT_COMMIT=unknown ENV GIT_COMMIT=$GIT_COMMIT RUN apt-get update && \ apt-get install -y --no-install-recommends \ libssl3 libssl3 ca-certificates WORKDIR /usr/app # COPY --from=builder /usr/src/config config # COPY --from=builder /usr/src/Cargo.toml Cargo.toml Loading src/models/filegen.rs +3 −6 Original line number Diff line number Diff line Loading @@ -64,6 +64,7 @@ impl HostUrls { host_urls } } /// Store the response content for a host (dirauth or onionperf host) #[derive(Clone, Debug, Default)] pub struct HostContent { Loading Loading @@ -194,7 +195,7 @@ impl Model { let response = match reqwest::get(url.as_str()).await { Ok(response) => response, Err(error) => { // Not logging who;e URL cause the path can be long // Not logging whole URL cause the path can be long warn!( "Error sending request to {}: {}", url.host_str().unwrap_or_default(), Loading @@ -203,11 +204,7 @@ impl Model { continue; } }; let status = response.status(); if !status.is_success() { warn!("Response status: {:?}.", status.canonical_reason()); continue; } // debug!("Response headers: {:?}.", response.headers()); let content = match response.bytes().await { Ok(content) => content, Err(error) => { Loading Loading
Containerfile +1 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ ARG GIT_COMMIT=unknown ENV GIT_COMMIT=$GIT_COMMIT RUN apt-get update && \ apt-get install -y --no-install-recommends \ libssl3 libssl3 ca-certificates WORKDIR /usr/app # COPY --from=builder /usr/src/config config # COPY --from=builder /usr/src/Cargo.toml Cargo.toml Loading
src/models/filegen.rs +3 −6 Original line number Diff line number Diff line Loading @@ -64,6 +64,7 @@ impl HostUrls { host_urls } } /// Store the response content for a host (dirauth or onionperf host) #[derive(Clone, Debug, Default)] pub struct HostContent { Loading Loading @@ -194,7 +195,7 @@ impl Model { let response = match reqwest::get(url.as_str()).await { Ok(response) => response, Err(error) => { // Not logging who;e URL cause the path can be long // Not logging whole URL cause the path can be long warn!( "Error sending request to {}: {}", url.host_str().unwrap_or_default(), Loading @@ -203,11 +204,7 @@ impl Model { continue; } }; let status = response.status(); if !status.is_success() { warn!("Response status: {:?}.", status.canonical_reason()); continue; } // debug!("Response headers: {:?}.", response.headers()); let content = match response.bytes().await { Ok(content) => content, Err(error) => { Loading