explicit type

pull/66/head
Jeff Becker 6 years ago
parent 207e312eb0
commit c7c6905e1e
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -105,8 +105,10 @@ namespace llarp
llarp::PubKey::Hash >
m_ActiveExits;
std::unordered_map< llarp::PubKey, llarp::huint32_t, llarp::PubKey::Hash >
m_KeyToIP;
using KeyMap_t = std::unordered_map< llarp::PubKey, llarp::huint32_t,
llarp::PubKey::Hash >;
KeyMap_t m_KeyToIP;
std::unordered_map< llarp::huint32_t, llarp::PubKey,
llarp::huint32_t::Hash >

@ -102,9 +102,9 @@ namespace llarp
huint32_t
ExitEndpoint::GetIPForIdent(const llarp::PubKey pk)
{
huint32_t found = {0};
const auto itr = m_KeyToIP.find(pk);
if(itr != m_KeyToIP.cend())
huint32_t found = {0};
KeyMap_t::iterator itr = m_KeyToIP.find(pk);
if(itr != m_KeyToIP.end())
{
found.h = itr->second.h;
}

Loading…
Cancel
Save