aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/objective-c/helloworld/main.m
diff options
context:
space:
mode:
Diffstat (limited to 'examples/objective-c/helloworld/main.m')
-rw-r--r--examples/objective-c/helloworld/main.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/objective-c/helloworld/main.m b/examples/objective-c/helloworld/main.m
index f390b5a0f9..b67380812b 100644
--- a/examples/objective-c/helloworld/main.m
+++ b/examples/objective-c/helloworld/main.m
@@ -43,7 +43,7 @@ static NSString * const kHostAddress = @"localhost:50051";
int main(int argc, char * argv[]) {
@autoreleasepool {
[GRPCCall useInsecureConnectionsForHost:kHostAddress];
- [GRPCCall usePrimaryUserAgent:@"HelloWorld/1.0" forHost:kHostAddress];
+ [GRPCCall setUserAgentPrefix:@"HelloWorld/1.0"];
HLWGreeter *client = [[HLWGreeter alloc] initWithHost:kHostAddress];