Skip to content

Commit

Permalink
Copy default dialer again
Browse files Browse the repository at this point in the history
  • Loading branch information
echlebek committed Feb 13, 2024
1 parent 353be65 commit 7b2dd06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/wsclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type wsClient struct {
requestHeader http.Header

// Websocket dialer and connection.
dialer *websocket.Dialer
dialer websocket.Dialer
conn *websocket.Conn
connMutex sync.RWMutex

Expand Down Expand Up @@ -57,7 +57,7 @@ func (c *wsClient) Start(ctx context.Context, settings types.StartSettings) erro
}

// Prepare connection settings.
c.dialer = websocket.DefaultDialer
c.dialer = *websocket.DefaultDialer

var err error
c.url, err = url.Parse(settings.OpAMPServerURL)
Expand Down

0 comments on commit 7b2dd06

Please sign in to comment.