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:
parent
acc03fcad7
commit
8cc507f9ac
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue