aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/private/GRPCCronetChannelFactory.m
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-10-16 18:28:16 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-10-16 18:28:16 -0700
commitad5485ae4ef4ec31cb6b3ed54876fd9868343388 (patch)
tree24487565740e640256ae3bc5a7a27208379140e4 /src/objective-c/GRPCClient/private/GRPCCronetChannelFactory.m
parentbc292b87c26ea8f6465443a152e86b3ed71e585b (diff)
Make channel args immutable
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCCronetChannelFactory.m')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCCronetChannelFactory.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCCronetChannelFactory.m b/src/objective-c/GRPCClient/private/GRPCCronetChannelFactory.m
index 5c0fe16d39..00b388ebbe 100644
--- a/src/objective-c/GRPCClient/private/GRPCCronetChannelFactory.m
+++ b/src/objective-c/GRPCClient/private/GRPCCronetChannelFactory.m
@@ -53,7 +53,7 @@ NS_ASSUME_NONNULL_BEGIN
}
- (nullable grpc_channel *)createChannelWithHost:(NSString *)host
- channelArgs:(nullable NSMutableDictionary *)args {
+ channelArgs:(nullable NSDictionary *)args {
// Remove client authority filter since that is not supported
args[@GRPC_ARG_DISABLE_CLIENT_AUTHORITY_FILTER] = [NSNumber numberWithInt:1];
@@ -81,7 +81,7 @@ NS_ASSUME_NONNULL_BEGIN
}
- (nullable grpc_channel *)createChannelWithHost:(NSString *)host
- channelArgs:(nullable NSMutableArray *)args {
+ channelArgs:(nullable NSDictionary *)args {
[NSException raise:NSInvalidArgumentException
format:@"Must enable macro GRPC_COMPILE_WITH_CRONET to build Cronet channel."];
return nil;