fix: 修复map加锁无效

This commit is contained in:
ouqiang
2017-06-22 01:58:58 +08:00
parent e6560e8483
commit 3e8c3a236e
+1 -1
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)