Use GatewayStore instead of complex typedef

This commit is contained in:
bitfl0wer 2023-11-14 20:05:21 +01:00
parent 199bf91daf
commit 03d3c0b112
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ pub struct Gateway {
>,
websocket_receive: SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>,
kill_send: tokio::sync::broadcast::Sender<()>,
store: Arc<Mutex<HashMap<Snowflake, Arc<RwLock<ObservableObject>>>>>,
store: GatewayStore,
url: String,
}

View File

@ -19,7 +19,7 @@ pub struct GatewayHandle {
>,
/// Tells gateway tasks to close
pub(super) kill_send: tokio::sync::broadcast::Sender<()>,
pub(crate) store: Arc<Mutex<HashMap<Snowflake, Arc<RwLock<ObservableObject>>>>>,
pub(crate) store: GatewayStore,
}
impl GatewayHandle {