Skip to content

Commit 1f8b639

Browse files
authored
---
yaml --- r: 5601 b: refs/heads/master c: ada4cd5 h: refs/heads/master i: 5599: 855dbbc
1 parent 3af1a5a commit 1f8b639

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: a722e95c5c137257d9d20131d6e01f23cb0aadc6
2+
refs/heads/master: ada4cd50025cec53f534685e3d708c25912ae324
33
refs/heads/travis: dae77e558b884bc1b165155482d76c8e40b0fca4
44
refs/heads/gh-pages: 049a9668af6afce3b5840dee8be005b0e6b43506
55
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

trunk/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)