From 67ec5a92b33089d1b821717d6e9f96e28f06fe26 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Sun, 17 Nov 2024 21:29:26 +0000 Subject: [PATCH] Fix some lint issues --- src/core/link_tcp.go | 6 ------ src/core/link_wss.go | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/core/link_tcp.go b/src/core/link_tcp.go index 3315f5c7..e50912d3 100644 --- a/src/core/link_tcp.go +++ b/src/core/link_tcp.go @@ -27,12 +27,6 @@ func (l *links) newLinkTCP() *linkTCP { 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) { return l.links.findSuitableIP(url, func(hostname string, ip net.IP, port int) (net.Conn, error) { addr := &net.TCPAddr{ diff --git a/src/core/link_wss.go b/src/core/link_wss.go index 4d968c2f..1a8d571f 100644 --- a/src/core/link_wss.go +++ b/src/core/link_wss.go @@ -59,7 +59,7 @@ func (l *linkWSS) dial(ctx context.Context, url *url.URL, info linkInfo, options if err != nil { return nil, err } - return &linkWSConn{ + return &linkWSSConn{ Conn: websocket.NetConn(ctx, wsconn, websocket.MessageBinary), }, nil })