Skip to content

Commit

Permalink
refactor(background_job/git): handle refresh error for CodeIndexer (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys authored Sep 4, 2024
1 parent 7c2ddac commit 8444abc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ee/tabby-webserver/src/service/background_job/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ impl SchedulerGitJob {
let repository = self.repository;
tokio::spawn(async move {
let mut code = CodeIndexer::default();
code.refresh(embedding, &repository).await;
code.refresh(embedding, &repository).await
})
.await
.context("Job execution failed")?;
.context("Job execution failed")??;
Ok(())
}

Expand Down

0 comments on commit 8444abc

Please sign in to comment.