mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-05-27 21:50:41 +00:00
Check the result of wait_merging_threads
This commit is contained in:
committed by
Paul Masurel
parent
8cd5a2d81d
commit
b2beac1203
@@ -208,7 +208,7 @@ fn run_example(index_path: &Path) -> tantivy::Result<()> {
|
||||
// Usually this isn't needed, but in `main` we try to
|
||||
// delete the temporary directory and that fails on
|
||||
// Windows if the files are still open.
|
||||
index_writer.wait_merging_threads();
|
||||
index_writer.wait_merging_threads()?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user