Skip to content

Commit

Permalink
Readd start_snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
boxbeam committed Apr 5, 2024
1 parent bcf69ca commit 443b281
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/tabby-common/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ impl Default for ServerConfig {
pub trait RepositoryAccess: Send + Sync {
async fn list_repositories(&self) -> Result<Vec<RepositoryConfig>>;

fn start_snapshot(&self, _version: u64) {}
fn process_file(&self, _version: u64, _file: SourceFile) {}
fn finish_snapshot(&self, _version: u64) {}
}
Expand Down
1 change: 1 addition & 0 deletions crates/tabby-scheduler/src/dataset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 443b281

Please sign in to comment.