Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Fix routing table update on refs
Alexis Sellier committed 3 years ago
commit 973f618cd366ccaf2742aaadd21556523b7b8dd2
parent 7c41c5edffa368f1a7a7f44d820fc67a57dd49fa
2 files changed +2 -6
modified radicle-cli/tests/commands.rs
@@ -594,8 +594,6 @@ fn rad_workflow() {
    )
    .unwrap();

-
    bob.connect(&alice).converge([&alice]);
-

    test(
        "examples/workflow/3-issues.md",
        &working.join("bob").join("heartwood"),
@@ -612,8 +610,6 @@ fn rad_workflow() {
    )
    .unwrap();

-
    bob.converge([&alice]);
-

    test(
        "examples/workflow/5-patching-maintainer.md",
        &working.join("alice"),
modified radicle-node/src/service.rs
@@ -873,14 +873,14 @@ where
                // from a new repository being initialized.
                if let Ok(updated) = self
                    .routing
-
                    .insert(message.rid, *relayer, message.timestamp)
+
                    .insert(message.rid, *announcer, message.timestamp)
                {
                    if updated {
                        self.emitter.emit(Event::SeedDiscovered {
                            rid: message.rid,
                            nid: *relayer,
                        });
-
                        info!(target: "service", "Routing table updated for {} with seed {relayer}", message.rid);
+
                        info!(target: "service", "Routing table updated for {} with seed {announcer}", message.rid);
                    }
                }
                // Discard announcement messages we've already seen, otherwise update