Skip to content

Commit

Permalink
Fix some lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
neilalexander committed Nov 17, 2024
1 parent 42873be commit 67ec5a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/core/link_tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion src/core/link_wss.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit 67ec5a9

Please sign in to comment.