aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2022-08-23 22:55:13 +0200
committerSebastiaan van Stijn <github@gone.nl>2022-08-23 23:27:35 +0200
commite14924570c27b4d5347135fdc47378363123d974 (patch)
tree0b3953b2a623f1ea99885d71b6ff0821e743a54b
parent6b7974cf1662d56a9aadc2b5c2ad12a80b448671 (diff)
client: remove deprecated WithDialer() option
It was deprecated in edac92409a3b1d0cfb7f5c0e2d10b3bb71f27245, which was part of 18.09 and up, so should be safe by now to remove this. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
-rw-r--r--client/options.go7
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 {