When I run go vet
the following error is output:
client.go:2345: assignment copies lock value to tr: net/http.Transport contains sync.Mutex
exit status 1
client.go:2345:
var tr http.Transport
// Setup TLS
if clientConfig.TLSEnabled {
tr = http.Transport{ // This is line 2345
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
MinVersion: tls.VersionTLS11,
},
}
}
How can I get around this warning? It's not stopping my builds; but, it's a warning and I don't want warnings.