瀏覽代碼

Merge pull request #44020 from thaJeztah/client_remove_withdialer

Samuel Karp 2 年之前
父節點
當前提交
5f698d1121
共有 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
 }
 
-// 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 {