aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/private
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2015-08-01 18:31:50 -0700
committerGravatar Jorge Canizales <jcanizales@google.com>2015-08-01 18:31:50 -0700
commit000fa388b8d7c99601092976b5b1d93a9705e34d (patch)
treef068d2131a3b11c528db9953e3b1953439f66010 /src/objective-c/GRPCClient/private
parente8543b071502fe0609d0c1657cfaf39d1a04c25d (diff)
Clarify comments in GRPCHost.m
Diffstat (limited to 'src/objective-c/GRPCClient/private')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCHost.m9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCHost.m b/src/objective-c/GRPCClient/private/GRPCHost.m
index 405545b86b..f3e4ce3ab9 100644
--- a/src/objective-c/GRPCClient/private/GRPCHost.m
+++ b/src/objective-c/GRPCClient/private/GRPCHost.m
@@ -38,7 +38,7 @@
#import "GRPCUnsecuredChannel.h"
@interface GRPCHost ()
-// TODO(mlumish): Investigate whether a caching channels with strong links is a good idea.
+// TODO(mlumish): Investigate whether caching channels with strong links is a good idea.
@property(nonatomic, strong) GRPCChannel *channel;
@end
@@ -80,8 +80,8 @@
});
if (hostCache[address]) {
// We could verify here that the cached host uses the same protocol that we're expecting. But
- // picking HTTP by adding the scheme to the address is going away (to make the use of insecure
- // channels less subtle), so it's not worth it now.
+ // creating non-SSL channels by adding "http://" to the address is going away (to make the use
+ // of insecure channels less subtle), so it's not worth it now.
return hostCache[address];
}
@@ -105,7 +105,8 @@
}
- (GRPCChannel *)channel {
- // Create it lazily.
+ // Create it lazily, because we don't want to open a connection just because someone is
+ // configuring a host.
if (!_channel) {
if (_secure) {
_channel = [[GRPCSecureChannel alloc] initWithHost:_address