Skip to content

Commit

Permalink
alts: provide channel type to HandshakerServiceChannel to suppress wa…
Browse files Browse the repository at this point in the history
…rning
  • Loading branch information
creamsoup committed Jul 22, 2019
1 parent f261af3 commit 1fbc61b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions alts/src/main/java/io/grpc/alts/HandshakerServiceChannel.java
Expand Up @@ -25,6 +25,7 @@
import io.grpc.netty.NettyChannelBuilder;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioSocketChannel;
import io.netty.util.concurrent.DefaultThreadFactory;
import java.util.concurrent.TimeUnit;

Expand Down Expand Up @@ -56,6 +57,7 @@ public Channel create() {
EventLoopGroup eventGroup =
new NioEventLoopGroup(1, new DefaultThreadFactory("handshaker pool", true));
ManagedChannel channel = NettyChannelBuilder.forTarget(target)
.channelType(NioSocketChannel.class)
.directExecutor()
.eventLoopGroup(eventGroup)
.usePlaintext()
Expand Down

0 comments on commit 1fbc61b

Please sign in to comment.