Skip to content

Commit

Permalink
Add documentation to deprecate WithTimeout dial option (grpc#1333)
Browse files Browse the repository at this point in the history
  • Loading branch information
menghanl authored Jun 26, 2017
1 parent eb7b130 commit 77d4a9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clientconn.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ func WithPerRPCCredentials(creds credentials.PerRPCCredentials) DialOption {

// WithTimeout returns a DialOption that configures a timeout for dialing a ClientConn
// initially. This is valid if and only if WithBlock() is present.
// Deprecated: use DialContext and context.WithTimeout instead.
func WithTimeout(d time.Duration) DialOption {
return func(o *dialOptions) {
o.timeout = d
Expand Down

0 comments on commit 77d4a9f

Please sign in to comment.