revise the comments of WithTimeout
This commit is contained in:
@ -183,9 +183,8 @@ func WithPerRPCCredentials(creds credentials.Credentials) DialOption {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithTimeout returns a DialOption that configures a timeout for creating a ClientConn
|
// WithTimeout returns a DialOption that configures a timeout for dialing a ClientConn
|
||||||
// and dialing the corresponding network connections when calling Dial(...). This is
|
// initially. This is valid if and only if WithBlock() is present.
|
||||||
// valid if and only if WithBlock() is present.
|
|
||||||
func WithTimeout(d time.Duration) DialOption {
|
func WithTimeout(d time.Duration) DialOption {
|
||||||
return func(o *dialOptions) {
|
return func(o *dialOptions) {
|
||||||
o.timeout = d
|
o.timeout = d
|
||||||
|
Reference in New Issue
Block a user