Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
jkaflik committed Jun 6, 2023
2 parents 5ff2d11 + 6ba87b2 commit f5051e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ conn := clickhouse.OpenDB(&clickhouse.Options{
Compression: &clickhouse.Compression{
Method: clickhouse.CompressionLZ4,
},
Interface: clickhouse.HttpInterface,
Protocol: clickhouse.HTTP,
})
```

Expand Down Expand Up @@ -253,7 +253,7 @@ conn := clickhouse.OpenDB(&clickhouse.Options{
Username: "default",
Password: "",
},
Interface: clickhouse.HttpsInterface,
Protocol: clickhouse.HTTP,
})
```

Expand Down
3 changes: 1 addition & 2 deletions conn_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ func dialHttp(ctx context.Context, addr string, num int, opt *Options) (*httpCon
t := &http.Transport{
Proxy: http.ProxyFromEnvironment,
DialContext: (&net.Dialer{
Timeout: opt.DialTimeout,
KeepAlive: opt.ConnMaxLifetime,
Timeout: opt.DialTimeout,
}).DialContext,
MaxIdleConns: 1,
IdleConnTimeout: opt.ConnMaxLifetime,
Expand Down

0 comments on commit f5051e3

Please sign in to comment.