forked from TrueCloudLab/neoneo-go
[FIX] http/Transport.Dial is deprecated (#125)
--- cc @anthdm / @fyrchik / @aprasolova / @AlexVanin / @decentralisedkev
This commit is contained in:
parent
9252937375
commit
7c1147f04f
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue