Changes to an unbuffered channel, since we just close it.

This commit is contained in:
James Phillips 2015-08-13 11:38:02 -07:00
parent 1c6414e806
commit 8df55b6964

View file

@ -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