From d35e79ddfc48d2d722d6affde4dc074d0fef1044 Mon Sep 17 00:00:00 2001 From: Denis Makogon Date: Sun, 21 Jan 2018 21:51:33 +0200 Subject: [PATCH] Trying to address appveyor issues --- client.go | 6 +++--- client_unix.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client.go b/client.go index ce201bb2..bdb4c85a 100644 --- a/client.go +++ b/client.go @@ -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. @@ -343,7 +343,7 @@ func NewVersionedTLSClientFromBytes(endpoint string, certPEMBlock, keyPEMBlock, eventMonitor: new(eventMonitoringState), requestedAPIVersion: requestedAPIVersion, } - initializeNativeClient(c, defaultTransport) + c.initializeNativeClient(defaultTransport) return c, nil } diff --git a/client_unix.go b/client_unix.go index ab93845d..b1dfe115 100644 --- a/client_unix.go +++ b/client_unix.go @@ -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 }