From 7c1147f04f150e91c34455ee711ff8b0518a4686 Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Tue, 5 Feb 2019 11:29:39 +0300 Subject: [PATCH] [FIX] http/Transport.Dial is deprecated (#125) --- cc @anthdm / @fyrchik / @aprasolova / @AlexVanin / @decentralisedkev --- pkg/rpc/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.