From eec84d5d9614de08fd59e0d611078a23274f2fff Mon Sep 17 00:00:00 2001 From: Mathieu Acthernoene Date: Fri, 16 Dec 2016 16:39:31 +0100 Subject: [PATCH] Remove hardcoded exports --- examples/js-grpc/output/user/user_grpc_pb.js | 2 -- .../{{.File.Package}}/{{.File.Package}}_grpc_pb.js.tmpl | 2 -- 2 files changed, 4 deletions(-) diff --git a/examples/js-grpc/output/user/user_grpc_pb.js b/examples/js-grpc/output/user/user_grpc_pb.js index de2f11a..7c90957 100644 --- a/examples/js-grpc/output/user/user_grpc_pb.js +++ b/examples/js-grpc/output/user/user_grpc_pb.js @@ -97,8 +97,6 @@ function deserialize_user_UploadDocumentReply(buffer_arg) { -exports.TestServiceClient = grpc.makeGenericClientConstructor(UserServiceService); - var UserServiceService = exports.UserServiceService = { diff --git a/examples/js-grpc/templates/{{.File.Package}}/{{.File.Package}}_grpc_pb.js.tmpl b/examples/js-grpc/templates/{{.File.Package}}/{{.File.Package}}_grpc_pb.js.tmpl index 756e03d..b14bf29 100644 --- a/examples/js-grpc/templates/{{.File.Package}}/{{.File.Package}}_grpc_pb.js.tmpl +++ b/examples/js-grpc/templates/{{.File.Package}}/{{.File.Package}}_grpc_pb.js.tmpl @@ -31,8 +31,6 @@ function deserialize_{{$Package}}_{{.OutputType | splitArray "." | last}}(buffer {{end}} {{end}} -exports.TestServiceClient = grpc.makeGenericClientConstructor({{.Service.Name}}Service); - {{range .File.Service}} var {{.Name}}Service = exports.{{.Name}}Service = { {{$serviceName:=.Name}}