From 182ffaf06415e12a0feac4ff3700e06fdcc9dd5d Mon Sep 17 00:00:00 2001 From: Funtowicz Morgan Date: Thu, 12 Dec 2024 16:04:05 +0100 Subject: [PATCH] misc: use return Ok(()) Co-authored-by: Corentin REGAL --- backends/llamacpp/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/llamacpp/src/main.rs b/backends/llamacpp/src/main.rs index adc183edc5b..77340affbb2 100644 --- a/backends/llamacpp/src/main.rs +++ b/backends/llamacpp/src/main.rs @@ -118,7 +118,7 @@ async fn main() -> Result<(), RouterError> { use utoipa::OpenApi; let api_doc = ApiDoc::openapi().to_pretty_json().unwrap(); println!("{}", api_doc); - std::process::exit(0); + return Ok(()); }; text_generation_router::logging::init_logging(otlp_endpoint, otlp_service_name, json_output);