Skip to content

Commit d35e79d

Browse files
committed
Trying to address appveyor issues
1 parent c13236a commit d35e79d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

client.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,12 @@ func NewVersionedClient(endpoint string, apiVersionString string) (*Client, erro
218218
eventMonitor: new(eventMonitoringState),
219219
requestedAPIVersion: requestedAPIVersion,
220220
}
221-
initializeNativeClient(c, defaultTransport)
221+
c.initializeNativeClient(defaultTransport)
222222
return c, nil
223223
}
224224

225225
func (c *Client) WithTransport(trFunc func () *http.Transport) {
226-
initializeNativeClient(c, trFunc)
226+
c.initializeNativeClient(trFunc)
227227
}
228228

229229
// NewVersionnedTLSClient has been DEPRECATED, please use NewVersionedTLSClient.
@@ -343,7 +343,7 @@ func NewVersionedTLSClientFromBytes(endpoint string, certPEMBlock, keyPEMBlock,
343343
eventMonitor: new(eventMonitoringState),
344344
requestedAPIVersion: requestedAPIVersion,
345345
}
346-
initializeNativeClient(c, defaultTransport)
346+
c.initializeNativeClient(defaultTransport)
347347
return c, nil
348348
}
349349

client_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
// initializeNativeClient initializes the native Unix domain socket client on
1616
// Unix-style operating systems
17-
func initializeNativeClient(c *Client, trFunc func () *http.Transport) {
17+
func (c *Client) initializeNativeClient(trFunc func () *http.Transport) {
1818
if c.endpointURL.Scheme != unixProtocol {
1919
return
2020
}

0 commit comments

Comments
 (0)