diff options
author | Muxi Yan <mxyan@google.com> | 2018-10-17 18:01:14 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-10-17 18:01:14 -0700 |
commit | d578b4321812715de7fe615a1ae8624fd05f1c69 (patch) | |
tree | aad8cb9dc39cdd93549e9e2de9068ab5070fde53 /src/objective-c/GRPCClient/private/GRPCChannelPool.m | |
parent | f48c90606f246afab3a2aa1e1547578c4c34292a (diff) |
Add channelOptionsHash: to GRPCCChannelOptions
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCChannelPool.m')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCChannelPool.m | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCChannelPool.m b/src/objective-c/GRPCClient/private/GRPCChannelPool.m index 995212fdb6..4fae7d57ca 100644 --- a/src/objective-c/GRPCClient/private/GRPCChannelPool.m +++ b/src/objective-c/GRPCClient/private/GRPCChannelPool.m @@ -153,24 +153,7 @@ extern const char *kCFStreamVarName; - (NSUInteger)hash { NSUInteger result = 0; result ^= _host.hash; - result ^= _callOptions.userAgentPrefix.hash; - result ^= _callOptions.responseSizeLimit; - result ^= _callOptions.compressAlgorithm; - result ^= _callOptions.enableRetry; - result ^= (unsigned int)(_callOptions.keepaliveInterval * 1000); - result ^= (unsigned int)(_callOptions.keepaliveTimeout * 1000); - result ^= (unsigned int)(_callOptions.connectMinTimeout * 1000); - result ^= (unsigned int)(_callOptions.connectInitialBackoff * 1000); - result ^= (unsigned int)(_callOptions.connectMaxBackoff * 1000); - result ^= _callOptions.additionalChannelArgs.hash; - result ^= _callOptions.PEMRootCertificates.hash; - result ^= _callOptions.PEMPrivateKey.hash; - result ^= _callOptions.PEMCertChain.hash; - result ^= _callOptions.hostNameOverride.hash; - result ^= _callOptions.transportType; - result ^= [_callOptions.logContext hash]; - result ^= _callOptions.channelPoolDomain.hash; - result ^= _callOptions.channelID; + result ^= _callOptions.channelOptionsHash; return result; } |