Переглянути джерело

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