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:
parent
d1ba665ebf
commit
924b93283c
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue