(&self, session_id: &str)
| 98 | } |
| 99 | |
| 100 | pub async fn clear(&self, session_id: &str) { |
| 101 | if let Some(ref db) = self.db { |
| 102 | let _ = db.delete_for_session(session_id).await; |
| 103 | } |
| 104 | |
| 105 | let mut state = self.state.write().await; |
| 106 | state.remove(session_id); |
| 107 | } |
| 108 | |
| 109 | pub async fn set_status(&self, session_id: &str, index: usize, status: &str) -> bool { |
| 110 | let mut state = self.state.write().await; |
no test coverage detected