Update options to be public. This means people can implement the interfaces and actually use the options

This commit is contained in:
Asim
2015-12-31 18:11:46 +00:00
parent c2154fd5cc
commit 64b45f7846
17 changed files with 203 additions and 200 deletions

View File

@@ -22,7 +22,7 @@ type httpTransportClient struct {
ht *httpTransport
addr string
conn net.Conn
dialOpts dialOptions
dialOpts DialOptions
once sync.Once
sync.Mutex
@@ -281,7 +281,7 @@ func (h *httpTransport) Dial(addr string, opts ...DialOption) (Client, error) {
return nil, err
}
var dopts dialOptions
var dopts DialOptions
for _, opt := range opts {
opt(&dopts)