Explorar o código

fix scope issue

Dean Elbaz %!s(int64=11) %!d(string=hai) anos
pai
achega
d489940f74
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      connectionpool.go

+ 1 - 1
connectionpool.go

@@ -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)
 	}