Update generator to stop mentioning methodInfo (in TS files) (#1152)

This commit is contained in:
Eryu Xia 2021-10-20 23:21:17 +00:00 committed by GitHub
parent 0368e31aaa
commit 5831a96b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -600,7 +600,7 @@ void PrintTypescriptFile(Printer* printer, const FileDescriptor* file,
: "grpcWeb.MethodType.UNARY";
if (!method->client_streaming()) {
printer->Print(vars,
"methodInfo$method_name$ = "
"methodDescriptor$method_name$ = "
"new grpcWeb.MethodDescriptor(\n");
printer->Indent();
printer->Print(vars,
@ -627,7 +627,7 @@ void PrintTypescriptFile(Printer* printer, const FileDescriptor* file,
" '/$package_dot$$service_name$/$method_name$',\n"
"request,\n"
"metadata || {},\n"
"this.methodInfo$method_name$);\n");
"this.methodDescriptor$method_name$);\n");
printer->Outdent();
printer->Outdent();
printer->Print("}\n\n");
@ -666,7 +666,7 @@ void PrintTypescriptFile(Printer* printer, const FileDescriptor* file,
" '/$package_dot$$service_name$/$method_name$',\n"
"request,\n"
"metadata || {},\n"
"this.methodInfo$method_name$,\n"
"this.methodDescriptor$method_name$,\n"
"callback);\n");
printer->Outdent();
printer->Outdent();
@ -678,7 +678,7 @@ void PrintTypescriptFile(Printer* printer, const FileDescriptor* file,
" '/$package_dot$$service_name$/$method_name$',\n"
"request,\n"
"metadata || {},\n"
"this.methodInfo$method_name$);\n");
"this.methodDescriptor$method_name$);\n");
printer->Outdent();
printer->Print("}\n\n");
}