aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/private/GRPCChannelPool.m
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-11-26 17:42:56 -0800
committerGravatar Muxi Yan <mxyan@google.com>2018-11-26 17:42:56 -0800
commitfdf4b8f2f76cf13f9d41c24775b78727de3c994b (patch)
treeb4c06a7e8547d1f6e0205c383a7847c09140c4e6 /src/objective-c/GRPCClient/private/GRPCChannelPool.m
parent5ae61f5a5a267f5975248d4262133a740e09a66b (diff)
clang-format
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCChannelPool.m')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCChannelPool.m8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCChannelPool.m b/src/objective-c/GRPCClient/private/GRPCChannelPool.m
index f6615b5840..646f1e4b86 100644
--- a/src/objective-c/GRPCClient/private/GRPCChannelPool.m
+++ b/src/objective-c/GRPCClient/private/GRPCChannelPool.m
@@ -74,8 +74,9 @@ static const NSTimeInterval kDefaultChannelDestroyDelay = 30;
}
- (void)dealloc {
- NSAssert([_unmanagedCalls count] == 0 && _wrappedChannel == nil, @"Pooled channel should only be"
- "destroyed after the wrapped channel is destroyed");
+ NSAssert([_unmanagedCalls count] == 0 && _wrappedChannel == nil,
+ @"Pooled channel should only be"
+ "destroyed after the wrapped channel is destroyed");
}
- (grpc_call *)unmanagedCallWithPath:(NSString *)path
@@ -183,7 +184,8 @@ static const NSTimeInterval kDefaultChannelDestroyDelay = 30;
+ (instancetype)sharedInstance {
dispatch_once(&gInitChannelPool, ^{
- gChannelPool = [[GRPCChannelPool alloc] initInstanceWithDestroyDelay:kDefaultChannelDestroyDelay];
+ gChannelPool =
+ [[GRPCChannelPool alloc] initInstanceWithDestroyDelay:kDefaultChannelDestroyDelay];
NSAssert(gChannelPool != nil, @"Cannot initialize global channel pool.");
});
return gChannelPool;