diff --git a/src/indexer/index_writer.rs b/src/indexer/index_writer.rs index c7c8ba740e..db0ef189bf 100644 --- a/src/indexer/index_writer.rs +++ b/src/indexer/index_writer.rs @@ -338,7 +338,7 @@ impl IndexWriter { /// If there are some merging threads, blocks until they all finish their work and /// then drop the `IndexWriter`. - pub fn wait_merging_threads(mut self) -> crate::Result<()> { + pub fn wait_merging_threads(&mut self) -> crate::Result<()> { // this will stop the indexing thread, // dropping the last reference to the segment_updater. self.drop_sender();