Skip to content

Commit 3ccb784

Browse files
authored
---
yaml --- r: 8013 b: refs/heads/tswast-patch-1 c: ada4cd5 h: refs/heads/master i: 8011: 915a8ea
1 parent 1919c8f commit 3ccb784

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: a722e95c5c137257d9d20131d6e01f23cb0aadc6
60+
refs/heads/tswast-patch-1: ada4cd50025cec53f534685e3d708c25912ae324
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/google-cloud-logging/src/main/java/com/google/cloud/logging/spi/v2/GrpcLoggingRpc.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,12 @@ public GrpcLoggingRpc(LoggingOptions options) throws IOException {
8282
ChannelProvider channelProvider;
8383
// todo(mziccard): ChannelProvider should support null/absent credentials for testing
8484
if (options.getHost().contains("localhost")
85-
|| options.getCredentials().equals(NoCredentials.getInstance())) {
86-
ManagedChannel managedChannel = ManagedChannelBuilder.forTarget(options.getHost())
87-
.usePlaintext(true)
88-
.executor(executor)
89-
.build();
85+
|| NoCredentials.getInstance().equals(options.getCredentials())) {
86+
ManagedChannel managedChannel =
87+
ManagedChannelBuilder.forTarget(options.getHost())
88+
.usePlaintext(true)
89+
.executor(executor)
90+
.build();
9091
channelProvider = FixedChannelProvider.create(managedChannel);
9192
} else {
9293
channelProvider = GrpcTransportOptions.setUpChannelProvider(

0 commit comments

Comments
 (0)