remove uneeded members

pull/1134/head
Jeff Becker 4 years ago
parent 66181d8a8f
commit 9d5dbbc0ad
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -47,12 +47,7 @@ namespace llarp
remote.port(0);
// try inserting remote address by ip into decaying hash set
// if it cannot insert it has hit a limit
if(m_PathLimits.Insert(remote))
{
m_HopsRejected++;
return false;
}
return true;
return not m_PathLimits.Insert(remote);
#endif
}
@ -297,7 +292,6 @@ namespace llarp
MapPut< SyncTransitMap_t::Lock_t >(m_TransitPaths, hop->info.txID, hop);
MapPut< SyncTransitMap_t::Lock_t >(m_TransitPaths, hop->info.rxID, hop);
m_TransitHopCount++;
m_HopsAccepted++;
}
void

@ -170,20 +170,6 @@ namespace llarp
return m_TransitHopCount;
}
/// number of paths we rejected total
uint64_t
TransitPathsRejected() const
{
return m_HopsRejected;
}
/// number of paths we accepted total
uint64_t
TransitPathsAccepted() const
{
return m_HopsRejected;
}
private:
AbstractRouter* m_Router;
SyncTransitMap_t m_TransitPaths;
@ -191,8 +177,6 @@ namespace llarp
bool m_AllowTransit;
util::DecayingHashSet< llarp::Addr > m_PathLimits;
uint64_t m_TransitHopCount = 0;
uint64_t m_HopsAccepted = 0;
uint64_t m_HopsRejected = 0;
};
} // namespace path
} // namespace llarp

Loading…
Cancel
Save