refactor Options API

This commit is contained in:
Alan Donovan 2021-09-21 15:23:02 -04:00
parent b3b675d108
commit f8a8713520
7 changed files with 113 additions and 147 deletions

View file

@ -19,8 +19,8 @@ type socket struct {
reader io.Reader
}
func newSocket(clientConn Connection, tlsConfig *tls.Config) *socket {
return &socket{addr: clientConn.uri("connect"), tlsConfig: tlsConfig}
func newSocket(uri string, tlsConfig *tls.Config) *socket {
return &socket{addr: uri, tlsConfig: tlsConfig}
}
func (s *socket) connect(ctx context.Context) error {