Skip to content

Commit f986ea9

Browse files
Converting NettyChannelBuilder reference to ManagedChannelBuilder
1 parent de65165 commit f986ea9

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

google-cloud-logging/src/main/java/com/google/cloud/logging/spi/v2/GrpcLoggingRpc.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@
5454
import com.google.logging.v2.WriteLogEntriesResponse;
5555
import com.google.protobuf.Empty;
5656
import io.grpc.ManagedChannel;
57+
import io.grpc.ManagedChannelBuilder;
5758
import io.grpc.Status.Code;
58-
import io.grpc.netty.NegotiationType;
59-
import io.grpc.netty.NettyChannelBuilder;
6059
import java.io.IOException;
6160
import java.util.Collections;
6261
import 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);

0 commit comments

Comments
 (0)