use at_shared::config::AppConfig; use sqlx::PgPool; use std::sync::Arc; use crate::firehose::Stats; #[derive(Clone)] pub struct AppState { #[allow(dead_code)] pub cfg: AppConfig, pub db: PgPool, pub stats: Arc, } impl AppState { pub fn new(cfg: AppConfig, db: PgPool, stats: Arc) -> Self { Self { cfg, db, stats } } }