Pārlūkot izejas kodu

fix scope issue

Dean Elbaz 11 gadi atpakaļ
vecāks
revīzija
d489940f74
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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.
 		//Create connections for host synchronously to mitigate flooding the host.
 		go func(a string, conns int) {
 		go func(a string, conns int) {
 			for ; conns < c.cfg.NumConns; conns++ {
 			for ; conns < c.cfg.NumConns; conns++ {
-				c.connect(addr)
+				c.connect(a)
 			}
 			}
 		}(addr, numConns)
 		}(addr, numConns)
 	}
 	}