Small code enhancements on providers
This commit is contained in:
parent
6f6ebb8025
commit
43d22d7a2f
6 changed files with 9 additions and 16 deletions
|
@ -97,7 +97,9 @@ func (p *Provider) createClient() (client.APIClient, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
sockets.ConfigureTransport(tr, hostURL.Scheme, hostURL.Host)
|
||||
if err := sockets.ConfigureTransport(tr, hostURL.Scheme, hostURL.Host); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
httpClient = &http.Client{
|
||||
Transport: tr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue