Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Small changes and note around initial state
cloudhead committed 2 years ago
commit 2b9a014243b83c5955e529291c242727d363600d
parent 9a60d4ad7fc6c7219e96a42b4f80007be6945c76
2 files changed +3 -1
modified radicle-node/src/service.rs
@@ -1653,7 +1653,7 @@ where
                }
            }
            (session::State::Attempted { .. } | session::State::Initial, msg) => {
-
                error!(target: "service", "Received {:?} from connecting peer {}", msg, peer.id);
+
                debug!(target: "service", "Ignoring unexpected message {:?} from connecting peer {}", msg, peer.id);
            }
            (session::State::Disconnected { .. }, msg) => {
                debug!(target: "service", "Ignoring {:?} from disconnected peer {}", msg, peer.id);
modified radicle-node/src/wire/protocol.rs
@@ -905,6 +905,8 @@ where
                            target: "wire",
                            "Attempt to connect to already connected peer {node_id}"
                        );
+
                        // FIXME: The problem here is the session will stay in "initial" state,
+
                        // because it can't transition to attempted.
                        continue;
                    }
                    self.service.attempted(node_id, addr.clone());