fix: 修复map加锁无效

pull/21/merge
ouqiang 2017-06-22 01:58:58 +08:00
parent e6560e8483
commit 3e8c3a236e
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ type GRPCPool struct {
func (p *GRPCPool) Get(addr string) (*grpc.ClientConn, error) {
p.RLock()
p.RUnlock()
defer p.RUnlock()
pool, ok := p.conns[addr]
if !ok {
err := p.newCommonPool(addr)