diff options
author | 2015-09-02 21:55:37 -0700 | |
---|---|---|
committer | 2015-09-02 22:03:07 -0700 | |
commit | 2f10127f85ebb4f81d64e195bee7731a40d00fa2 (patch) | |
tree | 7414e5fc96204e37da6cc417c8bc84eea2a52063 /src/objective-c/GRPCClient/private/GRPCWrappedCall.m | |
parent | 05640a58dfef890165b49045cd158cc4defe7a86 (diff) |
Publish GRPCRequestHeaders as a protocol
So we can make the property a dictionary later, by just extending
NSMutableDictionary to conform to the protocol.
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCWrappedCall.m')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCWrappedCall.m | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m index 3cb5613bd0..1f8c647fa6 100644 --- a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m +++ b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m @@ -38,8 +38,6 @@ #include <grpc/byte_buffer.h> #include <grpc/support/alloc.h> -#import "GRPCRequestHeaders.h" - #import "GRPCCompletionQueue.h" #import "GRPCHost.h" #import "NSDictionary+GRPC.h" @@ -67,7 +65,7 @@ return [self initWithMetadata:nil handler:nil]; } -- (instancetype)initWithMetadata:(GRPCRequestHeaders *)metadata handler:(void (^)())handler { +- (instancetype)initWithMetadata:(id<GRPCRequestHeaders>)metadata handler:(void (^)())handler { if (self = [super init]) { _op.op = GRPC_OP_SEND_INITIAL_METADATA; _op.data.send_initial_metadata.count = metadata.count; |