add TODO to make MaxIdleConnsPerHost configurable

This commit is contained in:
Travis 2017-02-24 13:29:14 -06:00
parent de1a779d41
commit b6907c4e19

View file

@ -43,6 +43,7 @@ const (
func main() {
// Limit the number of connections that a server can make to a single node
// in order to prevent a cluster storm.
// TODO: make this configurable
http.DefaultTransport.(*http.Transport).MaxIdleConnsPerHost = 64
m := NewMain()