Clean up some peer path learning logic, use a cheaper data structure.
This commit is contained in:
parent
8430db4dc7
commit
378bc73bf8
2 changed files with 20 additions and 17 deletions
|
@ -573,7 +573,7 @@ private:
|
|||
uint16_t _vMinor;
|
||||
uint16_t _vRevision;
|
||||
|
||||
Hashtable< uint64_t, int64_t > _lastTriedPath;
|
||||
std::vector< std::pair< Path *, int64_t > > _lastTriedPath;
|
||||
Mutex _lastTriedPath_m;
|
||||
|
||||
_PeerPath _paths[ZT_MAX_PEER_NETWORK_PATHS];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue