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