parent
82361e4676
commit
b99d481904
|
|
@ -54,7 +54,7 @@ passed to the factory method.
|
|||
gRPC applications can use a simple API to create a credential that works in various deployment scenarios.
|
||||
|
||||
```
|
||||
std::unique_ptr<Credentials> creds = CredentialsFactory::DefaultGoogleCredentials();
|
||||
std::unique_ptr<Credentials> creds = GoogleDefaultGoogleDefaultCredentials();
|
||||
// Create a channel, stub and make RPC calls (same as in the previous example)
|
||||
std::shared_ptr<ChannelInterface> channel = CreateChannel(server_name, creds, channel_args);
|
||||
std::unique_ptr<Greeter::Stub> stub(Greeter::NewStub(channel));
|
||||
|
|
|
|||
Loading…
Reference in New Issue