chore: fix clippy
This commit is contained in:
9
src/types.rs
Normal file
9
src/types.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
use futures_channel::mpsc::UnboundedSender;
|
||||
use tungstenite::Message;
|
||||
use std::net::SocketAddr;
|
||||
use std::collections::{HashMap, BTreeMap};
|
||||
use std::sync::{Mutex, Arc};
|
||||
|
||||
pub type Tx = UnboundedSender<Message>;
|
||||
pub type PeerMap = Arc<Mutex<HashMap<SocketAddr, Tx>>>;
|
||||
pub type RoomMap = Arc<Mutex<BTreeMap<String, BTreeMap<String, SocketAddr>>>>;
|
||||
Reference in New Issue
Block a user