Add comment and fix a trivial

pull/9247/head
Muxi Yan 8 years ago
parent 016d1085fc
commit d5bac0d38d
  1. 4
      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 {

Loading…
Cancel
Save