| 57 | rooms: HashMap<String, HashSet<u64>>, |
| 58 | visitor_count: Arc<AtomicUsize>, |
| 59 | } |
| 60 | |
| 61 | impl ChatState { |
| 62 | pub fn new(visitor_count: Arc<AtomicUsize>) -> ChatState { |
| 63 | // default room |
| 64 | let mut rooms = HashMap::new(); |
| 65 | rooms.insert("main".to_owned(), HashSet::new()); |
| 66 | |
| 67 | ChatState { |
| 68 | sessions: HashMap::new(), |
nothing calls this directly
no outgoing calls
no test coverage detected