Skip to content

Commit

Permalink
fix: use Dialer DialContext to propagate context correctly (#13113)
Browse files Browse the repository at this point in the history
  • Loading branch information
kruskall authored May 9, 2024
1 parent afff080 commit 1f8dd5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/elasticsearch/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ func NewHTTPTransport(cfg *Config) (*http.Transport, error) {
tlsDialer := transport.TLSDialer(dialer, tlsConfig, cfg.Timeout)
return &http.Transport{
Proxy: proxy,
Dial: dialer.Dial,
DialTLS: tlsDialer.Dial,
DialContext: dialer.DialContext,
DialTLSContext: tlsDialer.DialContext,
TLSClientConfig: tlsConfig.ToConfig(),
MaxIdleConnsPerHost: cfg.MaxIdleConnsPerHost,
}, nil
Expand Down

0 comments on commit 1f8dd5e

Please sign in to comment.