File tree Expand file tree Collapse file tree
google-cloud-logging/src/main/java/com/google/cloud/logging/spi/v2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454import com .google .logging .v2 .WriteLogEntriesResponse ;
5555import com .google .protobuf .Empty ;
5656import io .grpc .ManagedChannel ;
57+ import io .grpc .ManagedChannelBuilder ;
5758import io .grpc .Status .Code ;
58- import io .grpc .netty .NegotiationType ;
59- import io .grpc .netty .NettyChannelBuilder ;
6059import java .io .IOException ;
6160import java .util .Collections ;
6261import java .util .EnumSet ;
@@ -84,8 +83,8 @@ public GrpcLoggingRpc(LoggingOptions options) throws IOException {
8483 // todo(mziccard): ChannelProvider should support null/absent credentials for testing
8584 if (options .getHost ().contains ("localhost" )
8685 || options .getCredentials ().equals (NoCredentials .getInstance ())) {
87- ManagedChannel managedChannel = NettyChannelBuilder .forTarget (options .getHost ())
88- .negotiationType ( NegotiationType . PLAINTEXT )
86+ ManagedChannel managedChannel = ManagedChannelBuilder .forTarget (options .getHost ())
87+ .usePlaintext ( true )
8988 .executor (executor )
9089 .build ();
9190 channelProvider = FixedChannelProvider .create (managedChannel );
You can’t perform that action at this time.
0 commit comments