Fixed generation of grpc services

This commit is contained in:
Vanya P 2024-09-05 12:22:12 +02:00
parent 7e4c8f058c
commit 4f9e34afe8
No known key found for this signature in database
GPG Key ID: 364910494841F4D4
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());
}