Skip to content

Commit c562da0

Browse files
author
Muxi Yan
committed
Start the call directly
1 parent d2f96d6 commit c562da0

File tree

1 file changed

+3
-5
lines changed
  • examples/objective-c/helloworld

1 file changed

+3
-5
lines changed

examples/objective-c/helloworld/main.m

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,9 @@ int main(int argc, char * argv[]) {
5959
options.transport = GRPCDefaultTransportImplList.core_insecure;
6060
options.userAgentPrefix = @"HelloWorld/1.0";
6161

62-
GRPCUnaryProtoCall *call = [client sayHelloWithMessage:request
63-
responseHandler:[[HLWResponseHandler alloc] init]
64-
callOptions:options];
65-
66-
[call start];
62+
[[client sayHelloWithMessage:request
63+
responseHandler:[[HLWResponseHandler alloc] init]
64+
callOptions:options] start];
6765

6866
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
6967
}

0 commit comments

Comments
 (0)