revise the comments of WithTimeout

This commit is contained in:
iamqizhao 2016-06-06 12:13:00 -07:00
Родитель 404e9b67de
Коммит 24a701cae7
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

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