Fix lint issues

This commit is contained in:
Zoltan Papp
2024-07-08 21:53:20 +02:00
parent cfac8c4762
commit c3e8187a47
10 changed files with 29 additions and 29 deletions
+2 -1
View File
@@ -23,11 +23,12 @@ func Dial(address string) (net.Conn, error) {
HTTPClient: httpClientNbDialer(),
}
wsConn, _, err := websocket.Dial(context.Background(), wsURL, opts)
wsConn, resp, err := websocket.Dial(context.Background(), wsURL, opts)
if err != nil {
log.Errorf("failed to dial to Relay server '%s': %s", wsURL, err)
return nil, err
}
_ = resp.Body.Close()
conn := NewConn(wsConn)
return conn, nil
+1 -1
View File
@@ -18,7 +18,7 @@ var (
errRelayClientNotConnected = fmt.Errorf("relay client not connected")
)
// RelayTrack hold the relay clients for the foregin relay servers.
// RelayTrack hold the relay clients for the foreign relay servers.
// With the mutex can ensure we can open new connection in case the relay connection has been established with
// the relay server.
type RelayTrack struct {