瀏覽代碼

Actually fill the pool

Ben Hood 11 年之前
父節點
當前提交
c36d0f2840
共有 1 個文件被更改,包括 2 次插入0 次删除
  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 {