Apply suggestions from code review

This commit is contained in:
Clément Renault 2022-10-26 14:27:52 +02:00
parent 6c98752922
commit 4f955e68b3
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -89,7 +89,7 @@ impl IndexMapper {
let index = self.create_or_open_index(&index_path)?; let index = self.create_or_open_index(&index_path)?;
wtxn.commit()?; wtxn.commit()?;
// TODO: it would be better to lazyly create the index. But we need an Index::open function for milli. // TODO: it would be better to lazily create the index. But we need an Index::open function for milli.
if let Some(BeingDeleted) = if let Some(BeingDeleted) =
self.index_map.write().unwrap().insert(uuid, Available(index.clone())) self.index_map.write().unwrap().insert(uuid, Available(index.clone()))
{ {