From 924b93283c5bf37bf7d414d1b37cc4574f527fc4 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Fri, 30 May 2025 09:46:44 +0200 Subject: [PATCH] cli: change announcement message We ensure that the message of total synced seeds changes when we go over the replication factor target. This can happen if the node is still waiting to announce to a preferred seed, and other results are still being returned. --- radicle-cli/src/node.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/radicle-cli/src/node.rs b/radicle-cli/src/node.rs index af482dca..e5f34fb1 100644 --- a/radicle-cli/src/node.rs +++ b/radicle-cli/src/node.rs @@ -246,7 +246,9 @@ where term::format::secondary(progress.preferred()), term::format::secondary(n_preferred_seeds), term::format::secondary(progress.synced()), - term::format::secondary(min_replicas), + // N.b. the number of replicas could exceed the target if we're + // waiting for preferred seeds + term::format::secondary(min_replicas.max(progress.synced())), )); }) { Ok(result) => {