This commit is contained in:
iamqizhao 2015-05-12 18:02:38 -07:00
Родитель 3617cd5ab3
Коммит 8c6e829589
1 изменённых файлов: 0 добавлений и 9 удалений

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

@ -104,15 +104,6 @@ func WithDialer(f func(addr string, timeout time.Duration) (net.Conn, error)) Di
}
}
// WithHandshaker returns a DialOption that specifies a function to perform some handshaking
// with the server. It is typically used to negotiate the wire protocol version and security
// protocol with the server.
//func WithHandshaker(h func(conn net.Conn) (credentials.TransportAuthenticator, error)) DialOption {
// return func(o *dialOptions) {
// o.copts.Handshaker = h
// }
//}
// Dial creates a client connection the given target.
// TODO(zhaoq): Have an option to make Dial return immediately without waiting
// for connection to complete.