Start the call directly

pull/20899/head
Muxi Yan 5 years ago
parent d2f96d6d64
commit c562da0f76
  1. 6
      examples/objective-c/helloworld/main.m

@ -59,11 +59,9 @@ int main(int argc, char * argv[]) {
options.transport = GRPCDefaultTransportImplList.core_insecure;
options.userAgentPrefix = @"HelloWorld/1.0";
GRPCUnaryProtoCall *call = [client sayHelloWithMessage:request
[[client sayHelloWithMessage:request
responseHandler:[[HLWResponseHandler alloc] init]
callOptions:options];
[call start];
callOptions:options] start];
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}

Loading…
Cancel
Save