equal
deleted
inserted
replaced
187 replay_storage: Option<ReplayStorage>, |
187 replay_storage: Option<ReplayStorage>, |
188 } |
188 } |
189 |
189 |
190 impl HwServer { |
190 impl HwServer { |
191 pub fn new(clients_limit: usize, rooms_limit: usize) -> Self { |
191 pub fn new(clients_limit: usize, rooms_limit: usize) -> Self { |
|
192 todo!("add reconnection IDs"); |
192 let rooms = Slab::with_capacity(rooms_limit); |
193 let rooms = Slab::with_capacity(rooms_limit); |
193 let clients = IndexSlab::with_capacity(clients_limit); |
194 let clients = IndexSlab::with_capacity(clients_limit); |
194 let checkers = IndexSlab::new(); |
195 let checkers = IndexSlab::new(); |
195 Self { |
196 Self { |
196 clients, |
197 clients, |