diff options
author | Muxi Yan <mxyan@google.com> | 2018-10-24 10:45:07 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-10-24 12:54:47 -0700 |
commit | 1cbb484729706cf89b140b8a746562a53d916e8b (patch) | |
tree | e619a39dfba832376c30934d303d822577954d2e | |
parent | 26108e1106cffd1767f0b7fb6ff4b0672ed6a640 (diff) |
Fix build failure
-rw-r--r-- | src/objective-c/GRPCClient/internal/GRPCCallOptions+internal.h | 2 | ||||
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCCronetChannelFactory.m | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/objective-c/GRPCClient/internal/GRPCCallOptions+internal.h b/src/objective-c/GRPCClient/internal/GRPCCallOptions+internal.h index 406f268ef2..eb691b3acb 100644 --- a/src/objective-c/GRPCClient/internal/GRPCCallOptions+internal.h +++ b/src/objective-c/GRPCClient/internal/GRPCCallOptions+internal.h @@ -18,6 +18,8 @@ #import <Foundation/Foundation.h> +#import "../GRPCCallOptions.h" + @interface GRPCCallOptions () /** diff --git a/src/objective-c/GRPCClient/private/GRPCCronetChannelFactory.m b/src/objective-c/GRPCClient/private/GRPCCronetChannelFactory.m index 7067578467..f976e1e06a 100644 --- a/src/objective-c/GRPCClient/private/GRPCCronetChannelFactory.m +++ b/src/objective-c/GRPCClient/private/GRPCCronetChannelFactory.m @@ -53,14 +53,14 @@ NS_ASSUME_NONNULL_BEGIN } - (nullable grpc_channel *)createChannelWithHost:(NSString *)host - channelArgs:(nullable NSDictionary *)args { + channelArgs:(NSDictionary *)args { // Remove client authority filter since that is not supported args[@GRPC_ARG_DISABLE_CLIENT_AUTHORITY_FILTER] = [NSNumber numberWithInt:1]; - grpc_channel_args *channelArgs = BuildChannelArgs(args); + grpc_channel_args *channelArgs = GRPCBuildChannelArgs(args); grpc_channel *unmanagedChannel = grpc_cronet_secure_channel_create(_cronetEngine, host.UTF8String, channelArgs, NULL); - FreeChannelArgs(channelArgs); + GRPCFreeChannelArgs(channelArgs); return unmanagedChannel; } |