diff --git a/pkg/rpc/client.go b/pkg/rpc/client.go index 6d7b51b96..2e29bfaa5 100644 --- a/pkg/rpc/client.go +++ b/pkg/rpc/client.go @@ -66,9 +66,9 @@ func NewClient(ctx context.Context, endpoint string, opts ClientOptions) (*Clien } transport := &http.Transport{ - Dial: (&net.Dialer{ + DialContext: (&net.Dialer{ Timeout: opts.DialTimeout, - }).Dial, + }).DialContext, } // TODO(@antdm): Enable SSL.