mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-20 05:07:05 +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) {
|
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)
|
s.logger.Printf("get conns from client, serviceName: %s", serviceName)
|
||||||
opts = append(s.options, opts...)
|
|
||||||
s.lock.Lock()
|
s.lock.Lock()
|
||||||
defer s.lock.Unlock()
|
defer s.lock.Unlock()
|
||||||
conns := s.localConns[serviceName]
|
conns := s.localConns[serviceName]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user