Factor out GatewayStore into own type
This commit is contained in:
parent
7ecf44386e
commit
80a0ab9fb2
|
@ -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>>,
|
||||
|
|
Loading…
Reference in New Issue