Skip to content

Commit

Permalink
Trying to address appveyor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
denismakogon committed Jan 21, 2018
1 parent c13236a commit d35e79d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,12 @@ func NewVersionedClient(endpoint string, apiVersionString string) (*Client, erro
eventMonitor: new(eventMonitoringState),
requestedAPIVersion: requestedAPIVersion,
}
initializeNativeClient(c, defaultTransport)
c.initializeNativeClient(defaultTransport)
return c, nil
}

func (c *Client) WithTransport(trFunc func () *http.Transport) {
initializeNativeClient(c, trFunc)
c.initializeNativeClient(trFunc)
}

// NewVersionnedTLSClient has been DEPRECATED, please use NewVersionedTLSClient.
Expand Down Expand Up @@ -343,7 +343,7 @@ func NewVersionedTLSClientFromBytes(endpoint string, certPEMBlock, keyPEMBlock,
eventMonitor: new(eventMonitoringState),
requestedAPIVersion: requestedAPIVersion,
}
initializeNativeClient(c, defaultTransport)
c.initializeNativeClient(defaultTransport)
return c, nil
}

Expand Down
2 changes: 1 addition & 1 deletion client_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

// initializeNativeClient initializes the native Unix domain socket client on
// Unix-style operating systems
func initializeNativeClient(c *Client, trFunc func () *http.Transport) {
func (c *Client) initializeNativeClient(trFunc func () *http.Transport) {
if c.endpointURL.Scheme != unixProtocol {
return
}
Expand Down

0 comments on commit d35e79d

Please sign in to comment.