From 5c339d15b322952c71b7f3ecef94f6d2eb7dd2b4 Mon Sep 17 00:00:00 2001 From: Jorge Canizales Date: Wed, 2 Sep 2015 17:41:43 -0700 Subject: Remove -[asDictionary] --- src/objective-c/GRPCClient/GRPCCall.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/objective-c/GRPCClient/GRPCCall.m') diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m index e6d845c9c2..d5f775c6e6 100644 --- a/src/objective-c/GRPCClient/GRPCCall.m +++ b/src/objective-c/GRPCClient/GRPCCall.m @@ -236,9 +236,8 @@ NSString * const kGRPCTrailersKey = @"io.grpc.TrailersKey"; - (void)sendHeaders:(GRPCRequestHeaders *)headers { // TODO(jcanizales): Add error handlers for async failures - [_wrappedCall startBatchWithOperations:@[[[GRPCOpSendMetadata alloc] - initWithMetadata:[headers asDictionary] ?: @{} - handler:nil]]]; + [_wrappedCall startBatchWithOperations:@[[[GRPCOpSendMetadata alloc] initWithMetadata:headers + handler:nil]]]; } #pragma mark GRXWriteable implementation -- cgit v1.2.3