Add comment to self == [GRPCCall self]

pull/13261/head
Muxi Yan 7 years ago committed by GitHub
parent 87b1914437
commit 47d843b1ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/objective-c/GRPCClient/GRPCCall.m

@ -113,6 +113,8 @@ static NSString * const kBearerPrefix = @"Bearer ";
@synthesize state = _state;
+ (void)initialize {
// Guarantees the code in {} block is invoked only once. See ref at:
// https://developer.apple.com/documentation/objectivec/nsobject/1418639-initialize?language=objc
if (self == [GRPCCall self]) {
grpc_init();
callFlags = [NSMutableDictionary dictionary];

Loading…
Cancel
Save