From 8df55b6964d9b421df6066b2d6f5e1ce134d905a Mon Sep 17 00:00:00 2001 From: James Phillips Date: Thu, 13 Aug 2015 11:38:02 -0700 Subject: [PATCH] Changes to an unbuffered channel, since we just close it. --- consul/pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/pool.go b/consul/pool.go index 56fa80e0a..0cd0a99df 100644 --- a/consul/pool.go +++ b/consul/pool.go @@ -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