소스 검색

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 {