-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
package docker | ||
|
||
import ( | ||
"context" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
fsouza
Owner
|
||
"net" | ||
"net/http" | ||
|
||
|
@@ -20,7 +21,7 @@ func (c *Client) initializeNativeClient() { | |
} | ||
socketPath := c.endpointURL.Path | ||
tr := cleanhttp.DefaultTransport() | ||
tr.Dial = func(network, addr string) (net.Conn, error) { | ||
tr.DialContext = func(ctx context.Context, network, addr string) (net.Conn, error) { | ||
return c.Dialer.Dial(unixProtocol, socketPath) | ||
} | ||
c.nativeHTTPClient = &http.Client{Transport: tr} | ||
|
This should be
golang.org/x/net/context
notcontext
Your changes broke this client.