disable link layer locking because there was no contention

pull/799/head
Jeff Becker 5 years ago
parent dcdc7dc904
commit 2ab265be41
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -79,7 +79,7 @@ namespace llarp
auto itr = m_AuthedAddrs.find(from); auto itr = m_AuthedAddrs.find(from);
if(itr == m_AuthedAddrs.end()) if(itr == m_AuthedAddrs.end())
{ {
util::Lock lock(&m_PendingMutex); Lock lock(&m_PendingMutex);
if(m_Pending.count(from) == 0) if(m_Pending.count(from) == 0)
{ {
if(not permitInbound) if(not permitInbound)

@ -237,8 +237,8 @@ namespace llarp
const SecretKey& m_RouterEncSecret; const SecretKey& m_RouterEncSecret;
protected: protected:
using Lock = util::Lock; using Lock = util::NullLock;
using Mutex = util::Mutex; using Mutex = util::NullMutex;
bool bool
PutSession(const std::shared_ptr< ILinkSession >& s); PutSession(const std::shared_ptr< ILinkSession >& s);

Loading…
Cancel
Save