From 2ab265be41055a4bb31fdb5153363cfc6b246c31 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 3 Sep 2019 11:58:36 -0400 Subject: [PATCH] disable link layer locking because there was no contention --- llarp/iwp/linklayer.cpp | 2 +- llarp/link/server.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llarp/iwp/linklayer.cpp b/llarp/iwp/linklayer.cpp index 57d0c499a..882c4f684 100644 --- a/llarp/iwp/linklayer.cpp +++ b/llarp/iwp/linklayer.cpp @@ -79,7 +79,7 @@ namespace llarp auto itr = m_AuthedAddrs.find(from); if(itr == m_AuthedAddrs.end()) { - util::Lock lock(&m_PendingMutex); + Lock lock(&m_PendingMutex); if(m_Pending.count(from) == 0) { if(not permitInbound) diff --git a/llarp/link/server.hpp b/llarp/link/server.hpp index be25c4fdc..71c3d6fd3 100644 --- a/llarp/link/server.hpp +++ b/llarp/link/server.hpp @@ -237,8 +237,8 @@ namespace llarp const SecretKey& m_RouterEncSecret; protected: - using Lock = util::Lock; - using Mutex = util::Mutex; + using Lock = util::NullLock; + using Mutex = util::NullMutex; bool PutSession(const std::shared_ptr< ILinkSession >& s);