radicle-heartwood-lfs/radicle-cli/src
Fintan Halpenny b6d8bc9489
cli: fix check for synced replicas
If the expected replica count had exceeded the amount of seeds already
synced with the following message would appear:

    Not connected to any seeds for {rid}.

This is not true, since there are seeds that were already synced.

This is fixed by calculating the `synced` and `connected` nodes,
without the local peer in the set. This means that the check for
`synced.len() >= connected.len()` will get a hit and the function will
correctly return early.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2024-01-12 16:21:49 +01:00
..
commands cli: fix check for synced replicas 2024-01-12 16:21:49 +01:00
git cli: Add `rad patch diff` command 2024-01-04 11:49:01 +01:00
terminal cli: improve Author labels 2024-01-09 13:44:46 +01:00
commands.rs cli: Add `watch` command 2023-12-11 12:04:26 +01:00
git.rs cli: Implement pretty diffs with highlighting 2023-09-27 12:37:41 +02:00
lib.rs cli: sync on patch and issue updates 2023-12-19 14:19:55 +01:00
main.rs cli: Add `watch` command 2023-12-11 12:04:26 +01:00
node.rs cli: add control flow for announcement 2024-01-10 16:03:14 +01:00
pager.rs cli: Add pager to `rad diff` 2023-11-03 14:20:16 +01:00
project.rs radicle: Rename many more methods using new naming 2023-12-06 10:02:00 +01:00
terminal.rs cli: Hint about how to start node 2024-01-12 11:20:42 +01:00