[FIX] http/Transport.Dial is deprecated (#125)

---

cc @anthdm / @fyrchik / @aprasolova / @AlexVanin / @decentralisedkev
This commit is contained in:
Evgeniy Kulikov 2019-02-05 11:29:39 +03:00 committed by fabwa
parent 9252937375
commit 7c1147f04f

View file

@ -66,9 +66,9 @@ func NewClient(ctx context.Context, endpoint string, opts ClientOptions) (*Clien
} }
transport := &http.Transport{ transport := &http.Transport{
Dial: (&net.Dialer{ DialContext: (&net.Dialer{
Timeout: opts.DialTimeout, Timeout: opts.DialTimeout,
}).Dial, }).DialContext,
} }
// TODO(@antdm): Enable SSL. // TODO(@antdm): Enable SSL.