(&mut self, session_id: &str)
| 2933 | } |
| 2934 | |
| 2935 | fn remove_optimistic_session(&mut self, session_id: &str) { |
| 2936 | let mut session_ctx = self.context.session.write(); |
| 2937 | session_ctx.sessions.remove(session_id); |
| 2938 | session_ctx.messages.remove(session_id); |
| 2939 | session_ctx.session_status.remove(session_id); |
| 2940 | session_ctx.session_diff.remove(session_id); |
| 2941 | session_ctx.todos.remove(session_id); |
| 2942 | session_ctx.revert.remove(session_id); |
| 2943 | if session_ctx.current_session_id.as_deref() == Some(session_id) { |
| 2944 | session_ctx.current_session_id = None; |
| 2945 | } |
| 2946 | } |
| 2947 | |
| 2948 | fn promote_optimistic_session(&mut self, optimistic_session_id: &str, session: &SessionInfo) { |
| 2949 | let mut session_ctx = self.context.session.write(); |
no test coverage detected