mirror of
https://github.com/ouqiang/gocron.git
synced 2024-04-21 12:31:58 +00:00
fix: 修复map加锁无效
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user