Merge pull request #2819 from orwoods/master

Fixed generation of grpc services
This commit is contained in:
Michael Lumish 2024-10-15 14:54:25 -07:00 committed by GitHub
commit 912beea1d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ void PrintService(const ServiceDescriptor* service, Printer* out,
if (!params.generate_package_definition) {
out->Print(template_vars,
"exports.$name$Client = "
"grpc.makeGenericClientConstructor($name$Service);\n");
"grpc.makeGenericClientConstructor($name$Service, '$name$');\n");
}
out->PrintRaw(GetNodeComments(service, false).c_str());
}