From 1bb6c86f5d648107eec8554be28a51d6dcb1c2fd Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Fri, 17 May 2024 15:49:20 -0300 Subject: [PATCH] Remove unused import --- magic-nix-cache/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magic-nix-cache/src/main.rs b/magic-nix-cache/src/main.rs index 1a0d370..e0af249 100644 --- a/magic-nix-cache/src/main.rs +++ b/magic-nix-cache/src/main.rs @@ -26,7 +26,6 @@ use std::io::Write; use std::net::SocketAddr; use std::os::unix::fs::PermissionsExt; use std::path::{Path, PathBuf}; -use std::process::exit; use std::sync::Arc; use ::attic::nix_store::NixStore; @@ -417,7 +416,8 @@ async fn main_cli() -> Result<()> { .with_graceful_shutdown(async move { shutdown_receiver.await.ok(); tracing::info!("Shutting down"); - })?; + }) + .await; // Notify diagnostics endpoint if let Some(diagnostic_endpoint) = diagnostic_endpoint {