mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	don't penalize dht timeouts a second time
This commit is contained in:
		
							parent
							
								
									9046dbde4f
								
							
						
					
					
						commit
						e17efb6e91
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		| 
						 | 
					@ -278,9 +278,6 @@ func (t *dht) doMaintenance() {
 | 
				
			||||||
		newDests := make(map[NodeID]time.Time, len(dests))
 | 
							newDests := make(map[NodeID]time.Time, len(dests))
 | 
				
			||||||
		for nodeID, start := range dests {
 | 
							for nodeID, start := range dests {
 | 
				
			||||||
			if now.Sub(start) > 6*time.Second {
 | 
								if now.Sub(start) > 6*time.Second {
 | 
				
			||||||
				if info, isIn := t.table[*getNodeID(&key)]; isIn {
 | 
					 | 
				
			||||||
					info.pings++
 | 
					 | 
				
			||||||
				}
 | 
					 | 
				
			||||||
				continue
 | 
									continue
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			newDests[nodeID] = start
 | 
								newDests[nodeID] = start
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue