fix regression in async diff (introduced in 546c7f3)

This commit is contained in:
Stephan Dilly 2021-02-24 22:15:10 +01:00
parent 6482c81382
commit 06622008da

View File

@ -120,11 +120,12 @@ impl AsyncDiff {
hash,
);
let notify = if let Err(err) = notify {
log::error!("get_diff_helper error: {}", err);
true
} else {
false
let notify = match notify {
Err(err) => {
log::error!("get_diff_helper error: {}", err);
true
}
Ok(notify) => notify,
};
arc_pending.fetch_sub(1, Ordering::Relaxed);