mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	allow searches to start with nodes further from the destination than ourself
This commit is contained in:
		
							parent
							
								
									45abfafbba
								
							
						
					
					
						commit
						3e1ac81854
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -141,7 +141,7 @@ func (s *searches) continueSearch(sinfo *searchInfo) {
 | 
			
		|||
 | 
			
		||||
func (s *searches) newIterSearch(dest *NodeID, mask *NodeID) *searchInfo {
 | 
			
		||||
	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)
 | 
			
		||||
	return sinfo
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue