Skip to content

Commit

Permalink
Update crates/tabby-scheduler/src/index.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys authored May 7, 2024
1 parent 0b1be0d commit 1dd38d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/tabby-scheduler/src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ pub fn remove_staled_documents(cache: &mut CacheStore, code: &CodeSearchSchema,
.commit()
.expect("Failed to commit garbage collection");

gc_commit();

writer
.wait_merging_threads()
.expect("Failed to wait for merging threads on garbage collection");

gc_commit();

Check warning on line 133 in crates/tabby-scheduler/src/index.rs

View check run for this annotation

Codecov / codecov/patch

crates/tabby-scheduler/src/index.rs#L114-L133

Added lines #L114 - L133 were not covered by tests
}

fn is_valid_file(file: &SourceFile) -> bool {
Expand Down

0 comments on commit 1dd38d7

Please sign in to comment.