From 8af38d3d44c825d8d2dc3ef4e1e3d505e0baa920 Mon Sep 17 00:00:00 2001 From: dr7ana Date: Thu, 7 Dec 2023 16:33:06 -0800 Subject: [PATCH] TELL ME WHEN IT WORKS --- llarp/link/link_manager.cpp | 10 ++++++++-- llarp/nodedb.cpp | 1 - llarp/router/router.cpp | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/llarp/link/link_manager.cpp b/llarp/link/link_manager.cpp index 6db101b36..d48d28578 100644 --- a/llarp/link/link_manager.cpp +++ b/llarp/link/link_manager.cpp @@ -356,10 +356,10 @@ namespace llarp std::move(on_close)); rv) { - log::info(quic_cat, "Connection to {} successfully established!", remote_addr); + log::info(quic_cat, "Begun establishing connection to {}", remote_addr); return; } - log::warning(quic_cat, "Connection to {} successfully established!", remote_addr); + log::warning(quic_cat, "Failed to begin establishing connection to {}", remote_addr); } // TODO: should we add routes here now that Router::SessionOpen is gone? @@ -370,6 +370,12 @@ namespace llarp const auto& scid = conn_interface.scid(); const auto& rid = ep.connid_map[scid]; + log::critical( + logcat, + "SERVICE NODE (RID:{}) ESTABLISHED CONNECTION TO RID:{}", + _router.local_rid(), + rid); + // check to see if this connection was established while we were attempting to queue // messages to the remote if (auto itr = pending_conn_msg_queue.find(rid); itr != pending_conn_msg_queue.end()) diff --git a/llarp/nodedb.cpp b/llarp/nodedb.cpp index 34adf4ced..60ab2f3cb 100644 --- a/llarp/nodedb.cpp +++ b/llarp/nodedb.cpp @@ -368,7 +368,6 @@ namespace llarp } std::vector needed; - const auto now = time_point_now(); for (const auto& [rid, rc] : rc_lookup) diff --git a/llarp/router/router.cpp b/llarp/router/router.cpp index 5be99f6dc..e9c6e5d94 100644 --- a/llarp/router/router.cpp +++ b/llarp/router/router.cpp @@ -526,7 +526,7 @@ namespace llarp void Router::save_rc() { - _node_db->put_rc(router_contact.view()); + // _node_db->put_rc(router_contact.view()); log::info(logcat, "Saving RC file to {}", our_rc_file); queue_disk_io([&]() { router_contact.write(our_rc_file); }); }