From 188cec63f90f7c549124dddccf0d79efcf628538 Mon Sep 17 00:00:00 2001 From: shaoyue Date: Mon, 13 Dec 2021 19:22:08 +0800 Subject: [PATCH] [skip ci] Add comment for ClientBase.GetGrpcClient (#13268) Signed-off-by: shaoyue.chen --- internal/util/grpcclient/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/util/grpcclient/client.go b/internal/util/grpcclient/client.go index 6853a229c9..072972c66a 100644 --- a/internal/util/grpcclient/client.go +++ b/internal/util/grpcclient/client.go @@ -66,6 +66,7 @@ func (c *ClientBase) SetNewGrpcClientFunc(f func(cc *grpc.ClientConn) interface{ c.newGrpcClient = f } +// GetGrpcClient returns grpc client func (c *ClientBase) GetGrpcClient(ctx context.Context) (interface{}, error) { c.grpcClientMtx.RLock()