diff options
author | Muxi Yan <mxyan@google.com> | 2017-03-07 18:44:19 -0800 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2017-03-07 18:44:19 -0800 |
commit | d5bac0d38dfba3d9efec45ecbdf9c45678be13f9 (patch) | |
tree | 985c770bb614ceeb65450583e28010742a8cf9d1 | |
parent | 016d1085fc950023f232c4a8f93723fd591c6baa (diff) |
Add comment and fix a trivial
-rw-r--r-- | src/objective-c/GRPCClient/GRPCCall.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m index 1cda827e78..da861f6fca 100644 --- a/src/objective-c/GRPCClient/GRPCCall.m +++ b/src/objective-c/GRPCClient/GRPCCall.m @@ -274,7 +274,7 @@ static NSMutableDictionary *callFlags; // TODO(jcanizales): Add error handlers for async failures GRPCOpSendMetadata *op = [[GRPCOpSendMetadata alloc] initWithMetadata:headers flags:[GRPCCall callFlagsForHost:_host path:_path] - handler:nil]; + handler:nil]; // No clean-up needed after SEND_INITIAL_METADATA if (!_unaryCall) { [_wrappedCall startBatchWithOperations:@[op]]; } else { @@ -331,7 +331,7 @@ static NSMutableDictionary *callFlags; // Only called from the call queue. The error handler will be called from the // network queue if the requests stream couldn't be closed successfully. - (void)finishRequestWithErrorHandler:(void (^)())errorHandler { - if (!_unaryOpBatch) { + if (!_unaryCall) { [_wrappedCall startBatchWithOperations:@[[[GRPCOpSendClose alloc] init]] errorHandler:errorHandler]; } else { |