Skip to content

Commit

Permalink
updated retry dial signature
Browse files Browse the repository at this point in the history
  • Loading branch information
ShourieG committed Aug 28, 2024
1 parent 2e0c6b1 commit 0cbfdb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/filebeat/input/streaming/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func connectWebSocket(ctx context.Context, cfg config, url string, log *logp.Log
if cfg.Retry != nil {
retryConfig := cfg.Retry
for attempt := 1; attempt <= retryConfig.MaxAttempts; attempt++ {
conn, response, err = websocket.DefaultDialer.Dial(url, nil)
conn, response, err = websocket.DefaultDialer.DialContext(ctx, url, headers)
if err == nil {
return conn, response, nil
}
Expand Down

0 comments on commit 0cbfdb2

Please sign in to comment.