Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Account for skipped refs when announcing
cloudhead committed 2 years ago
commit 7834dccd2ccc988088c39d50169842c4939879a8
parent bc247dff2400ed4f454f1d76e6a95bd82f05b792
1 file changed +1 -2
modified 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();
    }