aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/private/GRPCChannelPool.m
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-10-16 18:14:34 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-10-16 18:14:34 -0700
commitbc292b87c26ea8f6465443a152e86b3ed71e585b (patch)
tree5c5e522ef536f73c8f771aee40827fd7e740908f /src/objective-c/GRPCClient/private/GRPCChannelPool.m
parent549db7b80b3e6e91aaf08f9f9bf2f932050cc310 (diff)
polish attributes of GRPCChannelConfiguration
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCChannelPool.m')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCChannelPool.m4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCChannelPool.m b/src/objective-c/GRPCClient/private/GRPCChannelPool.m
index 37e42f8c75..10a15f5255 100644
--- a/src/objective-c/GRPCClient/private/GRPCChannelPool.m
+++ b/src/objective-c/GRPCClient/private/GRPCChannelPool.m
@@ -141,9 +141,7 @@ const NSTimeInterval kChannelDestroyDelay = 30;
}
- (nonnull id)copyWithZone:(nullable NSZone *)zone {
- GRPCChannelConfiguration *newConfig = [[GRPCChannelConfiguration alloc] init];
- newConfig.host = _host;
- newConfig.callOptions = _callOptions;
+ GRPCChannelConfiguration *newConfig = [[GRPCChannelConfiguration alloc] initWithHost:_host callOptions:_callOptions];
return newConfig;
}