Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line numberDiff line numberDiff line change
Expand Up@@ -82,12 +82,11 @@ public GrpcLoggingRpc(LoggingOptions options) throws IOException {
ChannelProvider channelProvider;
// todo(mziccard): ChannelProvider should support null/absent credentials for testing
if (options.getHost().contains("localhost")
|| NoCredentials.getInstance().equals(options.getCredentials())) {
ManagedChannel managedChannel =
ManagedChannelBuilder.forTarget(options.getHost())
.usePlaintext(true)
.executor(executor)
.build();
|| options.getCredentials().equals(NoCredentials.getInstance())) {
ManagedChannel managedChannel = ManagedChannelBuilder.forTarget(options.getHost())
.usePlaintext(true)
.executor(executor)
.build();
channelProvider = FixedChannelProvider.create(managedChannel);
} else {
channelProvider = GrpcTransportOptions.setUpChannelProvider(
Expand Down