Преглед изворни кода

Tidy syntax and add self to AUTHORS

Miles Delahunty пре 10 година
родитељ
комит
264d68c4b8
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      AUTHORS
  2. 1 1
      connectionpool.go

+ 1 - 0
AUTHORS

@@ -43,3 +43,4 @@ James Maloney <jamessagan@gmail.com>
 Ashwin Purohit <purohit@gmail.com>
 Ashwin Purohit <purohit@gmail.com>
 Dan Kinder <dkinder.is.me@gmail.com>
 Dan Kinder <dkinder.is.me@gmail.com>
 Oliver Beattie <oliver@obeattie.com>
 Oliver Beattie <oliver@obeattie.com>
+Miles Delahunty <miles.delahunty@gmail.com>

+ 1 - 1
connectionpool.go

@@ -254,7 +254,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.
 		wg.Add(1)
 		wg.Add(1)
 		go func(a string, conns int) {
 		go func(a string, conns int) {
-			defer func() { wg.Done() }()
+			defer wg.Done()
 			for ; conns < c.cfg.NumConns; conns++ {
 			for ; conns < c.cfg.NumConns; conns++ {
 				c.connect(a)
 				c.connect(a)
 			}
 			}