Просмотр исходного кода

Merge pull request #44022 from thaJeztah/22.06_backport_client_remove_withdialer

Samuel Karp 2 лет назад
Родитель
Сommit
29c636bf80
1 измененных файлов с 0 добавлено и 7 удалено
  1. 0 7
      client/options.go

+ 0 - 7
client/options.go

@@ -44,13 +44,6 @@ func FromEnv(c *Client) error {
 	return nil
 	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
 // WithDialContext applies the dialer to the client transport. This can be
 // used to set the Timeout and KeepAlive settings of the client.
 // 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 {
 func WithDialContext(dialContext func(ctx context.Context, network, addr string) (net.Conn, error)) Opt {