From 3908765a473fba7550b4597dda80bfafa48055b3 Mon Sep 17 00:00:00 2001 From: Samuel Gomez Date: Wed, 6 Nov 2024 20:22:53 +0000 Subject: [PATCH] removing unnecesary log --- integrationos-emit/src/main.rs | 2 -- integrationos-emit/src/server.rs | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/integrationos-emit/src/main.rs b/integrationos-emit/src/main.rs index 92bdb0c..b5e23a9 100644 --- a/integrationos-emit/src/main.rs +++ b/integrationos-emit/src/main.rs @@ -21,8 +21,6 @@ fn main() -> Result<()> { .block_on(async move { let server: Server = Server::init(config).await?; - info!("Server started"); - server.run().await }) } diff --git a/integrationos-emit/src/server.rs b/integrationos-emit/src/server.rs index 6347e00..f13055a 100644 --- a/integrationos-emit/src/server.rs +++ b/integrationos-emit/src/server.rs @@ -12,7 +12,7 @@ use crate::{ use anyhow::Result as AnyhowResult; use axum::Router; use axum_server::Handle; -use integrationos_domain::{MongoStore, Store}; +use integrationos_domain::{MongoStore, Store, Unit}; use mongodb::Client; use reqwest_middleware::{reqwest, ClientBuilder, ClientWithMiddleware}; use reqwest_retry::{policies::ExponentialBackoff, RetryTransientMiddleware}; @@ -115,7 +115,7 @@ impl Server { pub async fn run(&self) -> AnyhowResult<()> { let app = router::get_router(&self.state).await; - let app: Router<()> = app.with_state(self.state.clone()); + let app: Router = app.with_state(self.state.clone()); tracing::info!("Emitter server listening on {}", self.state.config.address);