From 2579c927b0f01d0c9b72bd9b74f380fc6f424539 Mon Sep 17 00:00:00 2001 From: erikkaum Date: Fri, 19 Jul 2024 11:59:27 +0200 Subject: [PATCH] cargo fmt --- docs/openapi.json | 2 +- router/src/main.rs | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/openapi.json b/docs/openapi.json index ba16e5c1..3e7050ab 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -2102,4 +2102,4 @@ "description": "Hugging Face Text Generation Inference API" } ] -} \ No newline at end of file +} diff --git a/router/src/main.rs b/router/src/main.rs index e9c8fa3d..a8c519d4 100644 --- a/router/src/main.rs +++ b/router/src/main.rs @@ -458,8 +458,11 @@ async fn main() -> Result<(), RouterError> { match result { Ok(_) => { if let Some(ref ua) = user_agent { - let stop_event = - usage_stats::UsageStatsEvent::new(ua.clone(), usage_stats::EventType::Stop, None); + let stop_event = usage_stats::UsageStatsEvent::new( + ua.clone(), + usage_stats::EventType::Stop, + None, + ); stop_event.send().await; }; Ok(())