diff options
author | Samuel Karp <me@samuelkarp.com> | 2022-08-25 10:34:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 10:34:16 -0700 |
commit | 5f698d112134d27ffe9850bfd46708bd9fa35860 (patch) | |
tree | 503f5abb9aee4262fe82e3de86d972e4273d573e | |
parent | fa2799804c63659326b63fb787b4541aed8dde8c (diff) | |
parent | e14924570c27b4d5347135fdc47378363123d974 (diff) |
Merge pull request #44020 from thaJeztah/client_remove_withdialer
-rw-r--r-- | client/options.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/client/options.go b/client/options.go index 98d96f792e..099ad41846 100644 --- a/client/options.go +++ b/client/options.go @@ -44,13 +44,6 @@ func FromEnv(c *Client) error { return nil } -// WithDialer applies the dialer.DialContext to the client transport. This can be -// used to set the Timeout and KeepAlive settings of the client. -// Deprecated: use WithDialContext -func WithDialer(dialer *net.Dialer) Opt { - return WithDialContext(dialer.DialContext) -} - // WithDialContext applies the dialer to the client transport. This can be // used to set the Timeout and KeepAlive settings of the client. func WithDialContext(dialContext func(ctx context.Context, network, addr string) (net.Conn, error)) Opt { |