Skip to content

Commit

Permalink
chore: remove warining when garbage collection is not invoked for Cod…
Browse files Browse the repository at this point in the history
…eIndex (#2178)
  • Loading branch information
wsxiaoys authored May 18, 2024
1 parent 77ee2ab commit 93039ff
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions crates/tabby-scheduler/src/code/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use tabby_common::config::RepositoryConfig;
use tracing::{info, warn};
use tracing::info;

/// Module for creating code search index.
mod cache;
Expand Down Expand Up @@ -33,11 +33,3 @@ impl CodeIndex {
repository::garbage_collection(repositories);
}
}

impl Drop for CodeIndex {
fn drop(&mut self) {
if self.is_dirty {
warn!("Garbage collection was expected to be invoked at least once but was not.")
}
}
}

0 comments on commit 93039ff

Please sign in to comment.