disable link layer locking because there was no contention

This commit is contained in:
Jeff Becker 2019-09-03 11:58:36 -04:00
parent dcdc7dc904
commit 2ab265be41
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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);