Fix scope bug in goroutine argument
@@ -35,3 +35,4 @@ Nick Dhupia<nick.dhupia@gmail.com>
Yasuharu Goto <matope.ono@gmail.com>
Jeremy Schlatter <jeremy.schlatter@gmail.com>
Matthias Kadenbach <matthias.kadenbach@gmail.com>
+Dean Elbaz <elbaz.dean@gmail.com>
@@ -263,7 +263,7 @@ func (c *SimplePool) fillPool() {
//Create connections for host synchronously to mitigate flooding the host.
go func(a string, conns int) {
for ; conns < c.cfg.NumConns; conns++ {
- c.connect(addr)
+ c.connect(a)
}
}(addr, numConns)