Get a session by ID
(&self, session_id: &str)
| 135 | |
| 136 | /// Get a session by ID |
| 137 | pub fn get_session(&self, session_id: &str) -> Option<Arc<RwLock<UserSession>>> { |
| 138 | let partition_idx = self.partition_index(session_id); |
| 139 | let partition = self.sessions[partition_idx].read().ok()?; |
| 140 | partition.get(session_id).cloned() |
| 141 | } |
| 142 | |
| 143 | /// Remove a session from the registry |
| 144 | pub fn remove_session(&self, session_id: &str) -> Result<(), String> { |
nothing calls this directly
no test coverage detected