From 0f6ef0fbe51aa33d05a91d0fa87b28113b83f5a9 Mon Sep 17 00:00:00 2001 From: Doug Fawley Date: Mon, 8 Apr 2024 13:53:42 -0700 Subject: [PATCH] grpc: un-deprecate Dial and DialContext --- clientconn.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/clientconn.go b/clientconn.go index e3eb44d58b70..d16d058b053a 100644 --- a/clientconn.go +++ b/clientconn.go @@ -196,8 +196,6 @@ func NewClient(target string, opts ...DialOption) (conn *ClientConn, err error) } // Dial calls DialContext(context.Background(), target, opts...). -// -// Deprecated: use NewClient instead. Will be supported throughout 1.x. func Dial(target string, opts ...DialOption) (*ClientConn, error) { return DialContext(context.Background(), target, opts...) } @@ -211,8 +209,6 @@ func Dial(target string, opts ...DialOption) (*ClientConn, error) { // "passthrough" for backward compatibility. This distinction should not matter // to most users, but could matter to legacy users that specify a custom dialer // and expect it to receive the target string directly. -// -// Deprecated: use NewClient instead. Will be supported throughout 1.x. func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *ClientConn, err error) { // At the end of this method, we kick the channel out of idle, rather than // waiting for the first rpc.