10 use crate::{rate_limit::rate_limiter::RateLimiter, websocket::server::ChatServer};
11 use actix::prelude::*;
14 r2d2::{ConnectionManager, Pool},
17 use std::sync::{Arc, Mutex};
19 pub type DbPoolParam = web::Data<Pool<ConnectionManager<PgConnection>>>;
20 pub type RateLimitParam = web::Data<Arc<Mutex<RateLimiter>>>;
21 pub type ChatServerParam = web::Data<Addr<ChatServer>>;