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:
parent
1f7e0d79e6
commit
4f794277bc
2 changed files with 12 additions and 11 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue