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

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