mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-23 18:00:32 +08:00
fix
This commit is contained in:
parent
89f6bbc6a4
commit
75bff3a3dd
@ -83,6 +83,7 @@ func (s *ZkClient) GetConns(ctx context.Context, serviceName string, opts ...grp
|
|||||||
log.ZDebug(ctx, "get conns from zk remote", "serviceName", serviceName)
|
log.ZDebug(ctx, "get conns from zk remote", "serviceName", serviceName)
|
||||||
conns, err = s.GetConnsRemote(serviceName)
|
conns, err = s.GetConnsRemote(serviceName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
s.lock.Unlock()
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
s.localConns[serviceName] = conns
|
s.localConns[serviceName] = conns
|
||||||
|
Loading…
x
Reference in New Issue
Block a user