Skip to content

Commit

Permalink
Changes to an unbuffered channel, since we just close it.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Phillips committed Aug 13, 2015
1 parent 1e8937b commit 614bf44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consul/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func (p *ConnPool) acquire(dc string, addr net.Addr, version int) (*Conn, error)
var wait chan struct{}
var ok bool
if wait, ok = p.limiter[addr.String()]; !ok {
wait = make(chan struct{}, 1)
wait = make(chan struct{})
p.limiter[addr.String()] = wait
}
isLeadThread := !ok
Expand Down

0 comments on commit 614bf44

Please sign in to comment.