node: Account for skipped refs when announcing

This commit is contained in:
cloudhead 2024-04-05 17:40:53 +02:00
parent bc247dff24
commit 7834dccd2c
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

View File

@ -1038,7 +1038,7 @@ where
}
// It's possible for a fetch to succeed but nothing was updated.
if updated.is_empty() {
if updated.is_empty() || updated.iter().all(|u| u.is_skipped()) {
debug!(target: "service", "Nothing to announce, no refs were updated..");
} else {
// Finally, announce the refs. This is useful for nodes to know what we've synced,
@ -1058,7 +1058,6 @@ where
}
}
}
// We can now try to dequeue another fetch.
self.dequeue_fetch();
}