Use GatewayStore instead of complex typedef
This commit is contained in:
parent
199bf91daf
commit
03d3c0b112
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue