Skip to content

Commit

Permalink
Remove debugging code from production code
Browse files Browse the repository at this point in the history
  • Loading branch information
0x6e6562 committed Aug 14, 2014
1 parent 34511db commit b2b48da
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions connectionpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,16 +343,6 @@ func (c *SimplePool) Close() {

func (c *SimplePool) SetHosts(hosts []HostInfo) {

if len(hosts) == 0 {
return
}

peers := make([]string, len(hosts))
for i, host := range hosts {
peers[i] = host.Peer
}
fmt.Printf("Setting peers: %+v\n", peers)

c.hostMu.Lock()
toRemove := make(map[string]struct{})
for k := range c.hosts {
Expand Down Expand Up @@ -380,14 +370,6 @@ func (c *SimplePool) SetHosts(hosts []HostInfo) {
c.hostMu.Unlock()

c.fillPool()

pooledPeers := make([]string, len(c.hosts))
i := 0
for peer, _ := range c.hosts {
pooledPeers[i] = peer
i++
}
fmt.Printf("Pooled peers: %+v\n", pooledPeers)
}

func (c *SimplePool) removeHostLocked(addr string) {
Expand Down

0 comments on commit b2b48da

Please sign in to comment.