diff options
author | Muxi Yan <muxi@users.noreply.github.com> | 2018-03-08 23:48:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-08 23:48:30 -0800 |
commit | 30e1b4aa1fc7ee5efa6ce5bde04b174fda421cab (patch) | |
tree | 233dd8800cfc4bc94858c9d9781ca4d03429c3aa /src | |
parent | 2e251697b1991537f463e26afff71a561a732f58 (diff) | |
parent | a1cb4592a41dcaca4652f684a3a2f1b662a235c9 (diff) |
Merge pull request #14585 from grpc/remove-hostname-extraction
Remove hostname extraction for ConnectivityMonitor
Diffstat (limited to 'src')
-rw-r--r-- | src/objective-c/GRPCClient/GRPCCall.m | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m index 02492607cd..ea658bca2b 100644 --- a/src/objective-c/GRPCClient/GRPCCall.m +++ b/src/objective-c/GRPCClient/GRPCCall.m @@ -469,12 +469,6 @@ static NSString * const kBearerPrefix = @"Bearer "; [self sendHeaders:_requestHeaders]; [self invokeCall]; - // TODO(jcanizales): Extract this logic somewhere common. - NSString *host = [NSURL URLWithString:[@"https://" stringByAppendingString:_host]].host; - if (!host) { - // TODO(jcanizales): Check this on init. - [NSException raise:NSInvalidArgumentException format:@"host of %@ is nil", _host]; - } [GRPCConnectivityMonitor registerObserver:self selector:@selector(connectivityChanged:)]; } |