Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown field 'MaxConnsPerHost' in struct literal of type http.Transport #163

Open
WeiJinglun opened this issue Feb 19, 2020 · 2 comments
Open
Labels

Comments

@WeiJinglun
Copy link

When I want run ‘go get github.com/influxdata/influxdb-comparisons/cmd/bulk_query_gen github.com/influxdata/influxdb-comparisons/cmd/query_benchmarker_influxdb’. The console shows '# github.com/influxdata/influxdb-comparisons/bulk_query/httpgolang/gopath/src/github.com/influxdata/influxdb-comparis'

@russorat
Copy link

@huli123 thanks for the issue. It's not clear what you are trying to accomplish. Could you provide a little more clarity?

@CGamesPlay
Copy link

CGamesPlay commented Jan 14, 2021

This issue's a bit old, but:

$ go get github.com/influxdata/influxdb-comparisons/cmd/query_benchmarker_influxdb
# github.com/influxdata/influxdb-comparisons/bulk_query/http
go/src/github.com/influxdata/influxdb-comparisons/bulk_query/http/http_client.go:32:20: unknown field 'MaxConnsPerHost' in struct literal of type http.Transport
$ go version
go version go1.10.4 linux/amd64

On Ubuntu, I'm able to install a newer version of go using this:

sudo apt-add-repository ppa:longsleep/golang-backports
sudo apt install golang-go

This resolves the issue. I'm not sure exactly which version of go is the minimum, but 1.15 worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants