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,