fix(core): remove all unwraps, fix unpolled futures, and fix search index memory leak on restart
This commit is contained in:
1 parent
ae0ea9ab22
commit
7dc0c329ad
9 files changed
+45
-59
No files matched your search
+3
-1
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user