Satisfying Lint update.

This commit is contained in:
Mak Mukhi 2016-10-14 10:47:28 -07:00
parent 37fb89efad
commit 54ecac33d6
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ type http2Client struct {
prevGoAwayID uint32
}
func dial(fn func(context.Context, string) (net.Conn, error), ctx context.Context, addr string) (net.Conn, error) {
func dial(ctx context.Context, fn func(context.Context, string) (net.Conn, error), addr string) (net.Conn, error) {
if fn != nil {
return fn(ctx, addr)
}
@ -147,7 +147,7 @@ func isTemporary(err error) bool {
// fails.
func newHTTP2Client(ctx context.Context, addr string, opts ConnectOptions) (_ ClientTransport, err error) {
scheme := "http"
conn, err := dial(opts.Dialer, ctx, addr)
conn, err := dial(ctx, opts.Dialer, addr)
if err != nil {
return nil, connectionErrorf(true, err, "transport: %v", err)
}