mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	fix debug builds
This commit is contained in:
		
							parent
							
								
									cf9880464b
								
							
						
					
					
						commit
						cac3444d9a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -258,7 +258,7 @@ func DEBUG_wire_encode_coords(coords []byte) []byte {
 | 
				
			||||||
func (c *Core) DEBUG_getDHTSize() int {
 | 
					func (c *Core) DEBUG_getDHTSize() int {
 | 
				
			||||||
	var total int
 | 
						var total int
 | 
				
			||||||
	c.router.doAdmin(func() {
 | 
						c.router.doAdmin(func() {
 | 
				
			||||||
		total = len(c.dht.table)
 | 
							total = len(c.router.dht.table)
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
	return total
 | 
						return total
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -320,7 +320,7 @@ func (c *Core) DEBUG_startLoopbackUDPInterface() {
 | 
				
			||||||
////////////////////////////////////////////////////////////////////////////////
 | 
					////////////////////////////////////////////////////////////////////////////////
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (c *Core) DEBUG_getAddr() *address.Address {
 | 
					func (c *Core) DEBUG_getAddr() *address.Address {
 | 
				
			||||||
	return address.AddrForNodeID(&c.dht.nodeID)
 | 
						return address.AddrForNodeID(&c.router.dht.nodeID)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue