Fix some lint issues

This commit is contained in:
Neil Alexander 2024-11-17 21:29:26 +00:00
parent 42873be09b
commit 67ec5a92b3
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 1 additions and 7 deletions

View file

@ -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{