This commit is contained in:
吴杨帆 2026-05-17 18:52:00 +08:00 committed by GitHub
commit 30db57e96d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 14 deletions

View file

@ -124,13 +124,13 @@ impl AsyncBlame {
arc_pending.fetch_sub(1, Ordering::Relaxed);
sender
.send(if notify {
AsyncGitNotification::Blame
} else {
AsyncGitNotification::FinishUnchanged
})
.expect("error sending blame");
if let Err(e) = sender.send(if notify {
AsyncGitNotification::Blame
} else {
AsyncGitNotification::FinishUnchanged
}) {
log::error!("blame notify error: {e}");
}
});
Ok(None)

View file

@ -140,13 +140,13 @@ impl AsyncDiff {
arc_pending.fetch_sub(1, Ordering::Relaxed);
sender
.send(if notify {
AsyncGitNotification::Diff
} else {
AsyncGitNotification::FinishUnchanged
})
.expect("error sending diff");
if let Err(e) = sender.send(if notify {
AsyncGitNotification::Diff
} else {
AsyncGitNotification::FinishUnchanged
}) {
log::error!("diff notify error: {e}");
}
});
Ok(None)