Quellcode durchsuchen

connection pool filling should finish in sync

Chris Bannister vor 10 Jahren
Ursprung
Commit
a9962b2ead
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      connectionpool.go

+ 2 - 2
connectionpool.go

@@ -412,7 +412,7 @@ func (pool *hostConnPool) fill() {
 
 		if err != nil {
 			// probably unreachable host
-			go pool.fillingStopped()
+			pool.fillingStopped()
 
 			// this is calle with the connetion pool mutex held, this call will
 			// then recursivly try to lock it again. FIXME
@@ -432,7 +432,7 @@ func (pool *hostConnPool) fill() {
 			fillCount--
 		}
 
-		go pool.fillingStopped()
+		pool.fillingStopped()
 		return
 	}