Verified Commit d6130c0a authored by juga's avatar juga
Browse files

Merge branch 'issue29_dl_onionperf'

parents 41e7044b 7bad5dcc
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+3 −6
Original line number Diff line number Diff line
@@ -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 {
@@ -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(),
@@ -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) => {