diff options
author | Muxi Yan <mxyan@google.com> | 2018-05-03 10:16:34 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-05-03 10:16:34 -0700 |
commit | dcb05c16c67e1473880482fff0581f11edd3da1b (patch) | |
tree | 4a170fe06d7adc24648768012c2cdedea51b70fb /src/compiler | |
parent | e6d6a1b97806828db2534c6427c8f5814dd0e048 (diff) |
Fix generater
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/objective_c_generator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/objective_c_generator.cc b/src/compiler/objective_c_generator.cc index 7d4d4d1f5a..2294615a28 100644 --- a/src/compiler/objective_c_generator.cc +++ b/src/compiler/objective_c_generator.cc @@ -222,7 +222,7 @@ void PrintMethodImplementations(Printer* printer, map< ::grpc::string, ::grpc::string> vars = { {"service_class", ServiceClassName(service)}}; - printer.Print(vars, "@protocol $service_class$ <NSObject>\n\n"); + printer.Print(vars, "@protocol $service_class$ <NSObject, GRPCProtoServiceInit>\n\n"); for (int i = 0; i < service->method_count(); i++) { PrintMethodDeclarations(&printer, service->method(i)); } @@ -248,7 +248,7 @@ void PrintMethodImplementations(Printer* printer, " */\n"); printer.Print(vars, "@interface $service_class$ :" - " GRPCProtoService<$service_class$, GRPCProtoServiceInit>\n"); + " GRPCProtoService<$service_class$>\n"); printer.Print( "- (instancetype)initWithHost:(NSString *)host" " NS_DESIGNATED_INITIALIZER;\n"); |