Fix iplocate cerificates (#283)

This commit is contained in:
Maciej Hirsz
2020-08-26 14:17:53 +02:00
committed by GitHub
parent 0f13c76fe1
commit 530132a3bb
3 changed files with 2 additions and 12 deletions
+1
View File
@@ -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
-2
View File
@@ -48,8 +48,6 @@ impl Actor for NodeConnector {
impl NodeConnector {
pub fn new(aggregator: Addr<Aggregator>, locator: Recipient<LocateRequest>, ip: Option<Ipv4Addr>) -> Self {
info!("Node connected: {:?}", ip);
Self {
// Garbage id, will be replaced by the Initialize message
nid: !0,
+1 -10
View File
@@ -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::<T>() {
match self.client.get(url).send()?.json::<T>() {
Ok(result) => Ok(Some(result)),
Err(err) => {
debug!("JSON error for ip location: {:?}", err);