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.
This commit is contained in:
Fintan Halpenny 2025-05-30 09:46:44 +02:00
parent d1ba665ebf
commit 924b93283c
1 changed files with 3 additions and 1 deletions

View File

@ -246,7 +246,9 @@ where
term::format::secondary(progress.preferred()), term::format::secondary(progress.preferred()),
term::format::secondary(n_preferred_seeds), term::format::secondary(n_preferred_seeds),
term::format::secondary(progress.synced()), 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) => { Ok(result) => {