Explorar o código

Actually fill the pool

Ben Hood %!s(int64=11) %!d(string=hai) anos
pai
achega
c36d0f2840
Modificáronse 1 ficheiros con 2 adicións e 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 {