diff --git a/backend/Dockerfile b/backend/Dockerfile index 44242e5..fb14b46 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -19,6 +19,7 @@ LABEL description="Polkadot Telemetry backend, static build" ARG PROFILE=release WORKDIR /usr/local/bin +COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /app/target/x86_64-unknown-linux-musl/$PROFILE/telemetry /usr/local/bin EXPOSE 8000 diff --git a/backend/src/node/connector.rs b/backend/src/node/connector.rs index fc17d3e..fc84ad1 100644 --- a/backend/src/node/connector.rs +++ b/backend/src/node/connector.rs @@ -48,8 +48,6 @@ impl Actor for NodeConnector { impl NodeConnector { pub fn new(aggregator: Addr, locator: Recipient, ip: Option) -> Self { - info!("Node connected: {:?}", ip); - Self { // Garbage id, will be replaced by the Initialize message nid: !0, diff --git a/backend/src/util/location.rs b/backend/src/util/location.rs index a7ae862..db97bd7 100644 --- a/backend/src/util/location.rs +++ b/backend/src/util/location.rs @@ -136,16 +136,7 @@ impl Locator { where for<'de> T: Deserialize<'de>, { - let mut result = match self.client.get(url).send() { - Ok(result) => result, - Err(error) => { - info!("Failed query {} ({:?})", url, error); - - return Err(error); - } - }; - - match result.json::() { + match self.client.get(url).send()?.json::() { Ok(result) => Ok(Some(result)), Err(err) => { debug!("JSON error for ip location: {:?}", err);