polish attributes of GRPCChannelConfiguration

pull/16190/head
Muxi Yan 6 years ago
parent 549db7b80b
commit bc292b87c2
  1. 4
      src/objective-c/GRPCClient/private/GRPCChannelPool.h
  2. 4
      src/objective-c/GRPCClient/private/GRPCChannelPool.m

@ -31,8 +31,8 @@ NS_ASSUME_NONNULL_BEGIN
@interface GRPCChannelConfiguration : NSObject<NSCopying>
@property(atomic, strong, readwrite) NSString *host;
@property(atomic, strong, readwrite) GRPCCallOptions *callOptions;
@property(copy, readonly) NSString *host;
@property(strong, readonly) GRPCCallOptions *callOptions;
@property(readonly) id<GRPCChannelFactory> channelFactory;
@property(readonly) NSMutableDictionary *channelArgs;

@ -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;
}

Loading…
Cancel
Save