From 7834dccd2ccc988088c39d50169842c4939879a8 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Fri, 5 Apr 2024 17:40:53 +0200 Subject: [PATCH] node: Account for skipped refs when announcing --- radicle-node/src/service.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/radicle-node/src/service.rs b/radicle-node/src/service.rs index f20122c4..fad9cfa5 100644 --- a/radicle-node/src/service.rs +++ b/radicle-node/src/service.rs @@ -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(); }