diff --git a/crates/tabby-common/src/config.rs b/crates/tabby-common/src/config.rs index 907a2bf1f472..1c116d666625 100644 --- a/crates/tabby-common/src/config.rs +++ b/crates/tabby-common/src/config.rs @@ -147,6 +147,7 @@ impl Default for ServerConfig { pub trait RepositoryAccess: Send + Sync { async fn list_repositories(&self) -> Result>; + fn start_snapshot(&self, _version: u64) {} fn process_file(&self, _version: u64, _file: SourceFile) {} fn finish_snapshot(&self, _version: u64) {} } diff --git a/crates/tabby-scheduler/src/dataset.rs b/crates/tabby-scheduler/src/dataset.rs index 576ce8cf0a75..689291325ce4 100644 --- a/crates/tabby-scheduler/src/dataset.rs +++ b/crates/tabby-scheduler/src/dataset.rs @@ -123,6 +123,7 @@ pub fn create_dataset(config: &[RepositoryConfig], access: &impl RepositoryAcces .duration_since(std::time::UNIX_EPOCH) .expect("Failed to read system clock") .as_millis() as u64; + access.start_snapshot(snapshot_version); let mut deps = DependencyFile::default(); for repository in config { deps::collect(repository.dir().as_path(), &mut deps);