aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/private/GRPCWrappedCall.m
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2015-09-02 21:55:37 -0700
committerGravatar Jorge Canizales <jcanizales@google.com>2015-09-02 22:03:07 -0700
commit2f10127f85ebb4f81d64e195bee7731a40d00fa2 (patch)
tree7414e5fc96204e37da6cc417c8bc84eea2a52063 /src/objective-c/GRPCClient/private/GRPCWrappedCall.m
parent05640a58dfef890165b49045cd158cc4defe7a86 (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.m4
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;