mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Fix some lint issues
This commit is contained in:
		
							parent
							
								
									42873be09b
								
							
						
					
					
						commit
						67ec5a92b3
					
				
					 2 changed files with 1 additions and 7 deletions
				
			
		| 
						 | 
					@ -27,12 +27,6 @@ func (l *links) newLinkTCP() *linkTCP {
 | 
				
			||||||
	return lt
 | 
						return lt
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type tcpDialer struct {
 | 
					 | 
				
			||||||
	info   linkInfo
 | 
					 | 
				
			||||||
	dialer *net.Dialer
 | 
					 | 
				
			||||||
	addr   *net.TCPAddr
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (l *linkTCP) dial(ctx context.Context, url *url.URL, info linkInfo, options linkOptions) (net.Conn, error) {
 | 
					func (l *linkTCP) dial(ctx context.Context, url *url.URL, info linkInfo, options linkOptions) (net.Conn, error) {
 | 
				
			||||||
	return l.links.findSuitableIP(url, func(hostname string, ip net.IP, port int) (net.Conn, error) {
 | 
						return l.links.findSuitableIP(url, func(hostname string, ip net.IP, port int) (net.Conn, error) {
 | 
				
			||||||
		addr := &net.TCPAddr{
 | 
							addr := &net.TCPAddr{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -59,7 +59,7 @@ func (l *linkWSS) dial(ctx context.Context, url *url.URL, info linkInfo, options
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			return nil, err
 | 
								return nil, err
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		return &linkWSConn{
 | 
							return &linkWSSConn{
 | 
				
			||||||
			Conn: websocket.NetConn(ctx, wsconn, websocket.MessageBinary),
 | 
								Conn: websocket.NetConn(ctx, wsconn, websocket.MessageBinary),
 | 
				
			||||||
		}, nil
 | 
							}, nil
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue