From 47f2f65eab636ea89f1127aebe5e73ed498365e5 Mon Sep 17 00:00:00 2001 From: Michael Jeffrey Date: Tue, 14 May 2024 13:12:28 -0700 Subject: [PATCH] fixup after rebase --- ingest/src/server_iot.rs | 1 - ingest/src/server_mobile.rs | 1 - iot_config/src/settings.rs | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ingest/src/server_iot.rs b/ingest/src/server_iot.rs index 7f431d511..737d3254d 100644 --- a/ingest/src/server_iot.rs +++ b/ingest/src/server_iot.rs @@ -372,7 +372,6 @@ pub async fn grpc_server(settings: &Settings) -> Result<()> { .create() .await?; - let grpc_addr = settings.listen; let grpc_server = GrpcServer { beacon_report_sink, witness_report_sink, diff --git a/ingest/src/server_mobile.rs b/ingest/src/server_mobile.rs index c8a2e1d11..60ac67b34 100644 --- a/ingest/src/server_mobile.rs +++ b/ingest/src/server_mobile.rs @@ -449,7 +449,6 @@ pub async fn grpc_server(settings: &Settings) -> Result<()> { bail!("expected valid api token in settings"); }; - let grpc_addr = settings.listen; let grpc_server = GrpcServer { heartbeat_report_sink, wifi_heartbeat_report_sink, diff --git a/iot_config/src/settings.rs b/iot_config/src/settings.rs index 45b41844d..ebf3c3dbf 100644 --- a/iot_config/src/settings.rs +++ b/iot_config/src/settings.rs @@ -1,7 +1,7 @@ use config::{Config, Environment, File}; use humantime_serde::re::humantime; use serde::Deserialize; -use std::{net::SocketAddr, path::Path, str::FromStr}; +use std::{net::SocketAddr, path::Path, str::FromStr, time::Duration}; #[derive(Debug, Deserialize)] pub struct Settings {