From 7dc61e04c916ad0c4472267be8a15d6e4aa0c493 Mon Sep 17 00:00:00 2001 From: Muxi Yan Date: Mon, 17 Jul 2017 18:54:37 -0700 Subject: Polish property name --- src/objective-c/GRPCClient/GRPCCall.h | 2 +- src/objective-c/GRPCClient/GRPCCall.m | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/objective-c/GRPCClient') diff --git a/src/objective-c/GRPCClient/GRPCCall.h b/src/objective-c/GRPCClient/GRPCCall.h index df6220c644..11e898242e 100644 --- a/src/objective-c/GRPCClient/GRPCCall.h +++ b/src/objective-c/GRPCClient/GRPCCall.h @@ -228,7 +228,7 @@ extern id const kGRPCTrailersKey; * * Not compatible with property oauth2AccessToken in GRPCCall (OAuth2). Do not use both at the same time. */ -@property(atomic, strong) id oauthToken; +@property(atomic, strong) id tokenProvider; /** * The request writer has to write NSData objects into the provided Writeable. The server will diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m index 0f58bc40c8..7cc94ad2fe 100644 --- a/src/objective-c/GRPCClient/GRPCCall.m +++ b/src/objective-c/GRPCClient/GRPCCall.m @@ -457,10 +457,10 @@ static NSString * const kBearerPrefix = @"Bearer "; // that the life of the instance is determined by this retain cycle. _retainSelf = self; - if (self.oauthToken != nil) { + if (self.tokenProvider != nil) { self.isWaitingForToken = YES; __weak typeof(self) weakSelf = self; - [self.oauthToken getTokenWithHandler:^(NSString *token){ + [self.tokenProvider getTokenWithHandler:^(NSString *token){ typeof(self) strongSelf = weakSelf; if (strongSelf && strongSelf.isWaitingForToken) { if (token) { -- cgit v1.2.3