From 6de41fa9a41bc2a7fe5474a997619d9506de765f Mon Sep 17 00:00:00 2001 From: "huangsimin@fusen.cn" Date: Mon, 29 Jan 2024 15:37:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=A0=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- goutils/proto_build/tpls/auto_grpc_nacos.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/goutils/proto_build/tpls/auto_grpc_nacos.tpl b/goutils/proto_build/tpls/auto_grpc_nacos.tpl index 50e0a2b..65ca5ea 100644 --- a/goutils/proto_build/tpls/auto_grpc_nacos.tpl +++ b/goutils/proto_build/tpls/auto_grpc_nacos.tpl @@ -76,6 +76,8 @@ func Auto{{.ClientName}}ClientEx(ctx context.Context, opts ...grpc.DialOption) ( return nil, fmt.Errorf("nameClient must be init. call") } + opts = append(opts, grpc.WithTransportCredentials(insecure.NewCredentials())) + sel := vo.SelectOneHealthInstanceParam{ ServiceName: "{{.GrpcServiceName}}", GroupName: groupName,