client: remove deprecated WithDialer() option
It was deprecated inedac92409a
, 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> (cherry picked from commite14924570c
) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
2dc3e510d4
commit
e5958a8f08
1 changed files with 0 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue