From c1330e18aad1d7a2a340fb823365df580cb1eec0 Mon Sep 17 00:00:00 2001 From: iamqizhao <toqizhao@gmail.com> Date: Thu, 7 Jan 2016 14:18:20 -0800 Subject: [PATCH] some missing comments --- clientconn.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clientconn.go b/clientconn.go index bf66914c..9c2e983b 100644 --- a/clientconn.go +++ b/clientconn.go @@ -89,6 +89,7 @@ func WithCodec(c Codec) DialOption { } } +// WithPicker returns a DialOption which sets a picker for connection selection. func WithPicker(p Picker) DialOption { return func(o *dialOptions) { o.picker = p @@ -104,6 +105,8 @@ func WithBlock() DialOption { } } +// WithInsecure returns a DialOption which disables transport security for this ClientConn. +// Note that transport security is required unless WithInsecure is set. func WithInsecure() DialOption { return func(o *dialOptions) { o.insecure = true