mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-19 20:57:03 +08:00
fix bug: rpc client intercepter called twice
Signed-off-by: wangchuxiao <wangchuxiao97@outlook.com>
This commit is contained in:
parent
03486cd27c
commit
ed9b76b59d
@ -97,7 +97,6 @@ func (s *ZkClient) GetConnsRemote(serviceName string) (conns []resolver.Address,
|
||||
|
||||
func (s *ZkClient) GetConns(ctx context.Context, serviceName string, opts ...grpc.DialOption) ([]grpc.ClientConnInterface, error) {
|
||||
s.logger.Printf("get conns from client, serviceName: %s", serviceName)
|
||||
opts = append(s.options, opts...)
|
||||
s.lock.Lock()
|
||||
defer s.lock.Unlock()
|
||||
conns := s.localConns[serviceName]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user