Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Change syncing rule for configured seeds
cloudhead committed 2 years ago
commit ff79d15bb86d9030ade6e3fd7f403a904ddf4bd8
parent e6728db15acb86dacf348a16aae9895faf3de4e1
1 file changed +3 -2
modified radicle-cli/src/node.rs
@@ -254,9 +254,10 @@ fn announce_<R: ReadRepository>(
                // We're done syncing when both of these conditions are met:
                //
                // 1. We've matched or exceeded our target replica count.
-
                // 2. We've synced with the seeds specified manually.
+
                // 2. We've synced with one of the seeds specified manually.
                if replicas.len() >= settings.replicas
-
                    && settings.seeds.iter().all(|s| replicas.contains_key(s))
+
                    && (settings.seeds.is_empty()
+
                        || settings.seeds.iter().any(|s| replicas.contains_key(s)))
                {
                    ControlFlow::Break(())
                } else {