aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/private/GRPCChannelPool.m
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-10-17 10:33:38 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-10-17 11:41:59 -0700
commit677ab86b4a8567197550d6969a4d5bd76b8206e1 (patch)
tree410303f6209968cdac92cc5a9f5c53c95ad96ef7 /src/objective-c/GRPCClient/private/GRPCChannelPool.m
parentda42aa1c1ba38a12450e6b75b20281d6603b3d7e (diff)
rename createChannel -> createChannelCallback
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCChannelPool.m')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCChannelPool.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCChannelPool.m b/src/objective-c/GRPCClient/private/GRPCChannelPool.m
index 11c9d4be8d..680b268dcf 100644
--- a/src/objective-c/GRPCClient/private/GRPCChannelPool.m
+++ b/src/objective-c/GRPCClient/private/GRPCChannelPool.m
@@ -338,14 +338,14 @@ const NSTimeInterval kChannelDestroyDelay = 30;
}
- (GRPCChannel *)channelWithConfiguration:(GRPCChannelConfiguration *)configuration
- createChannel:(GRPCChannel * (^)(void))createChannel {
+ createChannelCallback:(GRPCChannel * (^)(void))createChannelCallback {
__block GRPCChannel *channel;
dispatch_sync(_dispatchQueue, ^{
if ([self->_channelPool objectForKey:configuration]) {
[self->_callRefs[configuration] refChannel];
channel = self->_channelPool[configuration];
} else {
- channel = createChannel();
+ channel = createChannelCallback();
self->_channelPool[configuration] = channel;
GRPCChannelCallRef *callRef = [[GRPCChannelCallRef alloc]