LINE1 10 20 30 40 50 60 70 80 901use std::process::ExitCode;23use local_decisions::{config::Config, engine::Engine, server};45#[actix_web::main]6async fn main() -> ExitCode {7 env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).init();89 let config = match Config::from_env() {10 Ok(config) => config,11 Err(error) => {12 eprintln!("configuration error: {error}");13 return ExitCode::FAILURE;14 }15 };16 log::info!("loading {}", config.model_label());1718 let engine = match Engine::load(&config).await {19 Ok(engine) => engine,20 Err(error) => {21 log::error!("cannot load the model: {error}");22 return ExitCode::FAILURE;23 }24 };2526 match server::run(&config, engine).await {27 Ok(()) => ExitCode::SUCCESS,28 Err(error) => {29 log::error!("server stopped: {error}");30 ExitCode::FAILURE31 }32 }33}