diff options
author | 2015-04-29 10:58:24 -0700 | |
---|---|---|
committer | 2015-04-29 10:58:24 -0700 | |
commit | a571cebe01e32a7cf013ca074a97b11509dee167 (patch) | |
tree | feaeb7b3b4e4dde0e4b291ab6236619c41e9809e /src/objective-c/GRPCClient/private/GRPCWrappedCall.m | |
parent | def47aa9f39f375150d63eedea67b89d98de5638 (diff) |
Fixed missing increment
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCWrappedCall.m')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCWrappedCall.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m index c79daf434e..50dea9a4dd 100644 --- a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m +++ b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m @@ -53,7 +53,7 @@ - (instancetype)initWithMetadata:(NSDictionary *)metadata handler:(void (^)(void))handler { if (self = [super init]) { - _send_metadata = [metadata grpc_getMetadataArray]; + _send_metadata = [metadata grpc_metadataArray]; _count = metadata.count; _handler = handler; } @@ -292,7 +292,7 @@ grpc_op *ops_array = gpr_malloc(nops * sizeof(grpc_op)); size_t i = 0; for (id op in operations) { - [op getOp:&ops_array[i]]; + [op getOp:&ops_array[i++]]; [opProcessors addObject:[op opProcessor]]; } grpc_call_error error = grpc_call_start_batch(_call, ops_array, nops, |