This commit is contained in:
吴杨帆 2026-05-17 18:42:28 +08:00 committed by GitHub
commit 336c088bcf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,14 +108,19 @@ impl AsyncCommitFiles {
self.pending.fetch_add(1, Ordering::Relaxed);
rayon_core::spawn(move || {
Self::fetch_helper(&repo, params, &arc_current)
.expect("failed to fetch");
if let Err(e) =
Self::fetch_helper(&repo, params, &arc_current)
{
log::error!("commit_files fetch_helper: {e}");
}
arc_pending.fetch_sub(1, Ordering::Relaxed);
sender
.send(AsyncGitNotification::CommitFiles)
.expect("error sending");
if let Err(e) =
sender.send(AsyncGitNotification::CommitFiles)
{
log::error!("commit_files notify error: {e}");
}
});
Ok(())