5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-09-20 04:52:33 +00:00

allow searches to start with nodes further from the destination than ourself

This commit is contained in:
Arceliar 2018-06-02 16:39:34 -05:00
parent 45abfafbba
commit 3e1ac81854

View File

@ -141,7 +141,7 @@ func (s *searches) continueSearch(sinfo *searchInfo) {
func (s *searches) newIterSearch(dest *NodeID, mask *NodeID) *searchInfo { func (s *searches) newIterSearch(dest *NodeID, mask *NodeID) *searchInfo {
sinfo := s.createSearch(dest, mask) sinfo := s.createSearch(dest, mask)
sinfo.toVisit = s.core.dht.lookup(dest, false) sinfo.toVisit = s.core.dht.lookup(dest, true)
sinfo.visited = make(map[NodeID]bool) sinfo.visited = make(map[NodeID]bool)
return sinfo return sinfo
} }