Skip to content

Commit

Permalink
fix: 修复map加锁无效
Browse files Browse the repository at this point in the history
  • Loading branch information
ouqiang committed Jun 21, 2017
1 parent e6560e8 commit 3e8c3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/rpc/grpcpool/grpc_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3e8c3a2

Please sign in to comment.