Skip to content
Snippets Groups Projects
Commit 17b43e89 authored by Jorge Canizales's avatar Jorge Canizales
Browse files

Fixes initializer of the generated stub

parent f593fef5
No related branches found
No related tags found
No related merge requests found
...@@ -161,6 +161,7 @@ ...@@ -161,6 +161,7 @@
// Basic service implementation, over gRPC, that only does marshalling and parsing. // Basic service implementation, over gRPC, that only does marshalling and parsing.
@interface RMTTestService : ProtoService<RMTTestService> @interface RMTTestService : ProtoService<RMTTestService>
- (instancetype)initWithHost:(NSString *)host NS_DESIGNATED_INITIALIZER;
@end @end
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)
...@@ -33,10 +33,16 @@ static NSString *const kServiceName = @"TestService"; ...@@ -33,10 +33,16 @@ static NSString *const kServiceName = @"TestService";
@implementation RMTTestService @implementation RMTTestService
// Designated initializer
- (instancetype)initWithHost:(NSString *)host { - (instancetype)initWithHost:(NSString *)host {
return (self = [super initWithHost:host packageName:kPackageName serviceName:kServiceName]); return (self = [super initWithHost:host packageName:kPackageName serviceName:kServiceName]);
} }
- (instancetype)initWithHost:(NSString *)host
packageName:(NSString *)packageName
serviceName:(NSString *)serviceName {
return [self initWithHost:host];
}
#pragma mark EmptyCall(grpc.testing.Empty) returns (grpc.testing.Empty) #pragma mark EmptyCall(grpc.testing.Empty) returns (grpc.testing.Empty)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment