aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/objective-c/GRPCClient/GRPCCall.m2
-rw-r--r--src/objective-c/GRPCClient/private/GRPCChannelPool.m2
-rw-r--r--src/objective-c/GRPCClient/private/GRPCHost.m2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m
index 5aeedba9a7..8e7d5a5f94 100644
--- a/src/objective-c/GRPCClient/GRPCCall.m
+++ b/src/objective-c/GRPCClient/GRPCCall.m
@@ -564,7 +564,7 @@ const char *kCFStreamVarName = "grpc_cfstream";
}
NSMutableDictionary *headers = _requestHeaders;
- __block NSString *fetchedOauth2AccessToken;
+ NSString *fetchedOauth2AccessToken;
@synchronized(self) {
fetchedOauth2AccessToken = _fetchedOauth2AccessToken;
}
diff --git a/src/objective-c/GRPCClient/private/GRPCChannelPool.m b/src/objective-c/GRPCClient/private/GRPCChannelPool.m
index 56f76450b2..7aac077e77 100644
--- a/src/objective-c/GRPCClient/private/GRPCChannelPool.m
+++ b/src/objective-c/GRPCClient/private/GRPCChannelPool.m
@@ -190,7 +190,7 @@ extern const char *kCFStreamVarName;
}
- (GRPCChannel *)channelWithConfiguration:(GRPCChannelConfiguration *)configuration {
- __block GRPCChannel *channel;
+ GRPCChannel *channel;
@synchronized(self) {
if ([_channelPool objectForKey:configuration]) {
channel = _channelPool[configuration];
diff --git a/src/objective-c/GRPCClient/private/GRPCHost.m b/src/objective-c/GRPCClient/private/GRPCHost.m
index ab5b69cc4e..480e462184 100644
--- a/src/objective-c/GRPCClient/private/GRPCHost.m
+++ b/src/objective-c/GRPCClient/private/GRPCHost.m
@@ -141,7 +141,7 @@ static NSMutableDictionary *gHostCache;
host = [hostURL.host stringByAppendingString:@":443"];
}
- __block GRPCCallOptions *callOptions = nil;
+ GRPCCallOptions *callOptions = nil;
@synchronized(gHostCache) {
if ([gHostCache objectForKey:host]) {
callOptions = [gHostCache[host] callOptions];