(state: &State<'_, AppState>, search_id: Option<&str>)
| 111 | } |
| 112 | |
| 113 | fn unregister_search(state: &State<'_, AppState>, search_id: Option<&str>) { |
| 114 | let Some(search_id) = search_id.filter(|value| !value.is_empty()) else { |
| 115 | return; |
| 116 | }; |
| 117 | |
| 118 | lock_active_searches(state).remove(search_id); |
| 119 | } |
| 120 | |
| 121 | fn unregister_search_registry( |
| 122 | active_searches: &Arc<Mutex<std::collections::HashMap<String, Arc<AtomicBool>>>>, |
no test coverage detected