use std::sync::Arc; use crate::{app_state::AppState, rho::rho_connection::RhoConnection}; #[allow(dead_code)] pub struct UserService { state: Arc, } #[allow(dead_code)] impl UserService { pub fn new(state: Arc) -> Self { Self { state } } pub async fn connection_for_user(&self, user_id: i64) -> Option> { self.state.rho.get_for_user(user_id).await } }