Selaa lähdekoodia

Actually fill the pool

Ben Hood 11 vuotta sitten
vanhempi
commit
c36d0f2840
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      connectionpool.go

+ 2 - 0
connectionpool.go

@@ -379,6 +379,8 @@ func (c *SimplePool) SetHosts(hosts []HostInfo) {
 	}
 	c.hostMu.Unlock()
 
+	c.fillPool()
+
 	pooledPeers := make([]string, len(c.hosts))
 	i := 0
 	for peer, _ := range c.hosts {