diff options
author | Craig Tiller <ctiller@google.com> | 2016-10-10 10:20:48 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-10-10 10:20:48 -0700 |
commit | c99945e44ce40e52883c3c68cdb783eb395f9a03 (patch) | |
tree | ed370f2e7b32f0b286d8377e73b3d1e4bc5078e7 /src/objective-c/GRPCClient/private/GRPCWrappedCall.m | |
parent | 1bb0ce5e23126692169765496221c58da7310a2b (diff) | |
parent | fdc2b10dce93c806edc95eb76fdca38625c47d06 (diff) |
Merge branch 'direct-calls' into buffer_pools_for_realsies
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCWrappedCall.m')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCWrappedCall.m | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m index 1339429660..627b6aa86d 100644 --- a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m +++ b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m @@ -64,16 +64,24 @@ @implementation GRPCOpSendMetadata - (instancetype)init { - return [self initWithMetadata:nil handler:nil]; + return [self initWithMetadata:nil flags:0 handler:nil]; } -- (instancetype)initWithMetadata:(NSDictionary *)metadata handler:(void (^)())handler { +- (instancetype)initWithMetadata:(NSDictionary *)metadata + handler:(void (^)())handler { + return [self initWithMetadata:metadata flags:0 handler:handler]; +} + +- (instancetype)initWithMetadata:(NSDictionary *)metadata + flags:(uint32_t)flags + handler:(void (^)())handler { if (self = [super init]) { _op.op = GRPC_OP_SEND_INITIAL_METADATA; _op.data.send_initial_metadata.count = metadata.count; _op.data.send_initial_metadata.metadata = metadata.grpc_metadataArray; _op.data.send_initial_metadata.maybe_compression_level.is_set = false; _op.data.send_initial_metadata.maybe_compression_level.level = 0; + _op.flags = flags; _handler = handler; } return self; |