Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
change to a single loop over rids ops
✗ CI failure Sekhat Temporus committed 1 year ago
commit 1473ff5e1deb16c5bc203b7bf566008ff32e9a3c
parent d788677c07e3f1d5d6a1f51dfb7b0cb8377f1819
1 failed (1 total) View logs
1 file changed +5 -4
modified radicle-cli/src/commands/seed.rs
@@ -146,10 +146,8 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
        } => {
            for rid in rids.iter().copied() {
                update(rid, scope, &mut node, &profile)?;
-
            }

-
            if fetch && node.is_running() {
-
                for rid in rids.iter().copied() {   
+
                if fetch && node.is_running() {
                    sync::fetch(
                        rid,
                        SyncSettings::default()
@@ -180,7 +178,10 @@ pub fn update(
    if let Ok(repo) = profile.storage.repository(rid) {
        if repo.identity_doc()?.is_public() {
            profile.add_inventory(rid, node)?;
-
            term::success!("Inventory updated with {}", term::format::tertiary(rid));
+
            term::success!(
+
                "Inventory updated with {}",
+
                term::format::tertiary(rid)
+
            );
        }
    }