Factor out GatewayStore into own type

This commit is contained in:
bitfl0wer 2023-11-14 20:04:23 +01:00
parent 99eb869878
commit 199bf91daf
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,8 @@ use crate::types::{
ThreadUpdate, UpdateMessage, WebSocketEvent,
};
pub type GatewayStore = Arc<Mutex<HashMap<Snowflake, Arc<RwLock<ObservableObject>>>>>;
#[derive(Debug)]
pub struct Gateway {
events: Arc<Mutex<Events>>,