From 832e1849b2f254e7c202dde5a787080a38b72b12 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Thu, 4 Oct 2018 14:15:22 -0400 Subject: [PATCH] remove log and swap intros --- llarp/service/endpoint.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/llarp/service/endpoint.cpp b/llarp/service/endpoint.cpp index 2b5fbbdc8..0ea71d73c 100644 --- a/llarp/service/endpoint.cpp +++ b/llarp/service/endpoint.cpp @@ -761,8 +761,11 @@ namespace llarp llarp::LogWarn(Name(), " message ", seq, " dropped by endpoint ", p->Endpoint(), " via ", dst); if(MarkCurrentIntroBad(llarp_time_now_ms())) + { + SwapIntros(); llarp::LogInfo(Name(), " switched intros to ", remoteIntro.router, " via ", remoteIntro.pathID); + } UpdateIntroSet(); } return true; @@ -1128,12 +1131,8 @@ namespace llarp // try same router for(const auto& intro : currentIntroSet.I) { - llarp::LogInfo("have intro: ", intro); if(intro.ExpiresSoon(now)) - { - llarp::LogInfo("skipping intro, expires soon"); continue; - } auto itr = m_BadIntros.find(intro); if(itr == m_BadIntros.end() && intro.router == m_NextIntro.router) {