Explorar el Código

Actually fill the pool

Ben Hood hace 11 años
padre
commit
c36d0f2840
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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 {