aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/GRPCCall.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCall.m')
-rw-r--r--src/objective-c/GRPCClient/GRPCCall.m4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m
index 20703f548e..bc48f1aa1b 100644
--- a/src/objective-c/GRPCClient/GRPCCall.m
+++ b/src/objective-c/GRPCClient/GRPCCall.m
@@ -467,11 +467,9 @@ const char *kCFStreamVarName = "grpc_cfstream";
+ (uint32_t)callFlagsForHost:(NSString *)host path:(NSString *)path {
NSString *hostAndPath = [NSString stringWithFormat:@"%@/%@", host, path];
- uint32_t flags = 0;
@synchronized(callFlags) {
- flags = [callFlags[hostAndPath] intValue];
+ return [callFlags[hostAndPath] intValue];
}
- return flags;
}
// Designated initializer