mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Fix lint errors
This commit is contained in:
		
							parent
							
								
									166336a418
								
							
						
					
					
						commit
						8932ab0519
					
				
					 14 changed files with 44 additions and 54 deletions
				
			
		| 
						 | 
				
			
			@ -129,7 +129,7 @@ func (m *nodeinfo) _sendReq(key keyArray, callback func(nodeinfo NodeInfoPayload
 | 
			
		|||
	if callback != nil {
 | 
			
		||||
		m._addCallback(key, callback)
 | 
			
		||||
	}
 | 
			
		||||
	m.proto.tun.core.WriteTo([]byte{typeSessionProto, typeProtoNodeInfoRequest}, iwt.Addr(key[:]))
 | 
			
		||||
	_, _ = m.proto.tun.core.WriteTo([]byte{typeSessionProto, typeProtoNodeInfoRequest}, iwt.Addr(key[:]))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *nodeinfo) handleReq(from phony.Actor, key keyArray) {
 | 
			
		||||
| 
						 | 
				
			
			@ -146,7 +146,7 @@ func (m *nodeinfo) handleRes(from phony.Actor, key keyArray, info NodeInfoPayloa
 | 
			
		|||
 | 
			
		||||
func (m *nodeinfo) _sendRes(key keyArray) {
 | 
			
		||||
	bs := append([]byte{typeSessionProto, typeProtoNodeInfoResponse}, m._getNodeInfo()...)
 | 
			
		||||
	m.proto.tun.core.WriteTo(bs, iwt.Addr(key[:]))
 | 
			
		||||
	_, _ = m.proto.tun.core.WriteTo(bs, iwt.Addr(key[:]))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Admin socket stuff
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue