1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

Fix compile issue in endpoint.cpp

This commit is contained in:
Michael Thorpe 2018-11-03 20:17:28 +00:00
parent 1f7e0d79e6
commit 4f794277bc
No known key found for this signature in database
GPG key ID: 9E72CAE320D5817C
2 changed files with 12 additions and 11 deletions

View file

@ -432,16 +432,17 @@ namespace llarp
std::string m_Name;
std::string m_NetNS;
std::unordered_map< Address, PendingBufferQueue, Address::Hash >
m_PendingTraffic;
using PendingTraffic =
std::unordered_map< Address, PendingBufferQueue, Address::Hash >;
std::unordered_multimap< Address, std::unique_ptr< OutboundContext >,
Address::Hash >
m_RemoteSessions;
PendingTraffic m_PendingTraffic;
std::unordered_multimap< Address, std::unique_ptr< OutboundContext >,
Address::Hash >
m_DeadSessions;
using Sessions =
std::unordered_multimap< Address, std::unique_ptr< OutboundContext >,
Address::Hash >;
Sessions m_RemoteSessions;
Sessions m_DeadSessions;
std::unordered_map< Address, ServiceInfo, Address::Hash >
m_AddressToService;

View file

@ -280,11 +280,11 @@ namespace llarp
bool
Endpoint::HasPathToService(const Address& addr) const
{
auto range = m_RemoteSessions.equal_range(addr);
auto itr = range.first;
auto range = m_RemoteSessions.equal_range(addr);
Sessions::const_iterator itr = range.first;
while(itr != range.second)
{
if(itr->ReadyToSend())
if(itr->second->ReadyToSend())
return true;
++itr;
}