Skip to content

Commit

Permalink
reanem HttpReadTimeout to HttpTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
beltran committed Oct 22, 2021
1 parent d164d8c commit cb0d49e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hive.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type ConnectConfiguration struct {
Database string
ConnectTimeout time.Duration
SocketTimeout time.Duration
HttpReadTimeout time.Duration
HttpTimeout time.Duration
DialContext DialContextFunc
}

Expand Down Expand Up @@ -368,7 +368,7 @@ func innerConnect(ctx context.Context, host string, port int, auth string,
func getHTTPClient(configuration *ConnectConfiguration) (httpClient *http.Client, protocol string, err error) {
if configuration.TLSConfig != nil {
httpClient = &http.Client{
Timeout: configuration.HttpReadTimeout,
Timeout: configuration.HttpTimeout,
Transport: &http.Transport{
TLSClientConfig: configuration.TLSConfig,
DialContext: configuration.DialContext,
Expand All @@ -377,7 +377,7 @@ func getHTTPClient(configuration *ConnectConfiguration) (httpClient *http.Client
protocol = "https"
} else {
httpClient = &http.Client{
Timeout: configuration.HttpReadTimeout,
Timeout: configuration.HttpTimeout,
Transport: &http.Transport{
DialContext: configuration.DialContext,
},
Expand Down

0 comments on commit cb0d49e

Please sign in to comment.