fix(core): remove all unwraps, fix unpolled futures, and fix search index memory leak on restart

This commit is contained in:
Riz Ashraf committed 2026-09-21 18:54:19 +01:00
1 parent ae0ea9ab22
commit 7dc0c329ad
9 files changed
+45 -59

No files matched your search

+3 -1
View File
@@ -104,7 +104,9 @@ impl MemoryState {
idx.add_adr_sync(a);
}
});
}).await.unwrap();
}).await.unwrap_or_else(|e| {
tracing::error!("Failed to join tantivy index rebuild thread: {}", e);
});
let _ = new_idx.commit().await;
if let Ok(mut w) = self.search_index.write() {