Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Fix connection attempt tracking
cloudhead committed 2 years ago
commit 7b3d380ceb5e268b28c2ada97dde0652d7ecb35b
parent 0fbfbc5721b09eb2b998640004cdcfae7b7e5486
1 file changed +2 -2
modified radicle-node/src/wire/protocol.rs
@@ -773,6 +773,7 @@ where
                        );
                        continue;
                    }
+
                    self.service.attempted(node_id, addr.clone());

                    match dial::<G>(
                        addr.to_inner(),
@@ -785,7 +786,6 @@ where
                        NetTransport::<WireSession<G>>::with_session(session, Link::Outbound)
                    }) {
                        Ok(transport) => {
-
                            self.service.attempted(node_id, addr.clone());
                            self.outbound.insert(
                                transport.as_raw_fd(),
                                Outbound {
@@ -798,7 +798,7 @@ where
                                .push_back(reactor::Action::RegisterTransport(transport));
                        }
                        Err(err) => {
-
                            log::error!(target: "wire", "Error establishing connection: {err}");
+
                            log::error!(target: "wire", "Error establishing connection to {addr}: {err}");

                            self.service
                                .disconnected(node_id, &DisconnectReason::Dial(Arc::new(err)));