aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/GRPCCall.m
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-09-13 11:01:50 -0700
committerGravatar Mark D. Roth <roth@google.com>2016-09-13 11:01:50 -0700
commitc6dfe859dc53adf87357f9d7f568c00cf25b0dcb (patch)
treecc7bfed667536b87c0adb7bd89a0f427285327d0 /src/objective-c/GRPCClient/GRPCCall.m
parenta587b4136976ab19f370b0ff18a2cd9f4c720cda (diff)
parent6e51f992c6bfdfba61d984ab173305da455bd2e7 (diff)
Merge remote-tracking branch 'upstream/master' into grpclb_resolver_changes
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCall.m')
-rw-r--r--src/objective-c/GRPCClient/GRPCCall.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m
index 05a1d10f6d..eecda4c03a 100644
--- a/src/objective-c/GRPCClient/GRPCCall.m
+++ b/src/objective-c/GRPCClient/GRPCCall.m
@@ -103,6 +103,11 @@ NSString * const kGRPCTrailersKey = @"io.grpc.TrailersKey";
@synthesize state = _state;
+// TODO(jcanizales): If grpc_init is idempotent, this should be changed from load to initialize.
++ (void)load {
+ grpc_init();
+}
+
- (instancetype)init {
return [self initWithHost:nil path:nil requestsWriter:nil];
}