Skip to content

Commit 0f6ef0f

Browse files
committed
grpc: un-deprecate Dial and DialContext
1 parent 58dc749 commit 0f6ef0f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

clientconn.go

-4
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@ func NewClient(target string, opts ...DialOption) (conn *ClientConn, err error)
196196
}
197197

198198
// Dial calls DialContext(context.Background(), target, opts...).
199-
//
200-
// Deprecated: use NewClient instead. Will be supported throughout 1.x.
201199
func Dial(target string, opts ...DialOption) (*ClientConn, error) {
202200
return DialContext(context.Background(), target, opts...)
203201
}
@@ -211,8 +209,6 @@ func Dial(target string, opts ...DialOption) (*ClientConn, error) {
211209
// "passthrough" for backward compatibility. This distinction should not matter
212210
// to most users, but could matter to legacy users that specify a custom dialer
213211
// and expect it to receive the target string directly.
214-
//
215-
// Deprecated: use NewClient instead. Will be supported throughout 1.x.
216212
func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *ClientConn, err error) {
217213
// At the end of this method, we kick the channel out of idle, rather than
218214
// waiting for the first rpc.

0 commit comments

Comments
 (0)