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

don't hang :DDDDDD

This commit is contained in:
Jeff 2018-10-03 14:17:34 -04:00
parent acc03fcad7
commit 8cc507f9ac

View file

@ -137,8 +137,18 @@ namespace llarp
size_t m_NumPaths;
private:
typedef std::pair< RouterID, PathID_t > PathInfo_t;
typedef std::map< PathInfo_t, Path* > PathMap_t;
struct PathInfoHash
{
size_t operator()(const PathInfo_t & i) const
{
return *i.first.data_l() ^ *i.second.data_l();
}
};
typedef std::unordered_map< PathInfo_t, Path* , PathInfoHash> PathMap_t;
PathMap_t m_Paths;
};