Skip to content

Commit

Permalink
Update generator to stop mentioning methodInfo (in TS files) (#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampajano authored Oct 20, 2021
1 parent 0368e31 commit 5831a96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions javascript/net/grpc/web/generator/grpc_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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");
Expand Down Expand Up @@ -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();
Expand All @@ -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");
}
Expand Down

0 comments on commit 5831a96

Please sign in to comment.