mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	slightly better variable naming
This commit is contained in:
		
							parent
							
								
									800ccaa3d4
								
							
						
					
					
						commit
						6b51b44cbf
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -469,14 +469,14 @@ func (t *dht) doMaintenance() {
 | 
			
		|||
				continue
 | 
			
		||||
			}
 | 
			
		||||
			// This is a good spot to check if a node is worth pinging
 | 
			
		||||
			add := len(b.other) < dht_bucket_size
 | 
			
		||||
			doPing := len(b.other) < dht_bucket_size
 | 
			
		||||
			for _, info := range b.other {
 | 
			
		||||
				if dht_firstCloserThanThird(rumor.info.getNodeID(), &t.nodeID, info.getNodeID()) {
 | 
			
		||||
					// Add the node if they are closer to us than someone in the same bucket
 | 
			
		||||
					add = true
 | 
			
		||||
					doPing = true
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if !add {
 | 
			
		||||
			if !doPing {
 | 
			
		||||
				continue
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue