use clap::Parser; use color_eyre::Result; use common_x::signal::waiting_for_shutdown; use eldegoss::{config::Config, eldegoss::Eldegoss, util::Args}; use tracing::info; #[tokio::main] async fn main() -> Result<()> { common_x::log::init_log_filter("info,quinn=info"); let args = Args::parse(); let config: Config = common_x::configure::file_config(&args.config)?; info!("Loaded config {config:?}"); let eldegoss = Eldegoss::serve(config).await?; tokio::spawn(async move { loop { eldegoss.send("test", vec![0; 1024]).await.ok(); } }); waiting_for_shutdown().await; Ok(()) }