OkHttp should use plaintext in TransportBenchmark

Otherwise, OkHttp fails because it is connecting to a plaintext server.
This commit is contained in:
Eric Anderson 2015-08-04 20:30:30 -07:00
parent d1e15ab859
commit 2f799ed465
1 changed files with 2 additions and 1 deletions

View File

@ -120,7 +120,8 @@ public class TransportBenchmark {
int port = pickUnusedPort();
InetSocketAddress address = new InetSocketAddress("localhost", port);
serverBuilder = NettyServerBuilder.forAddress(address);
channelBuilder = OkHttpChannelBuilder.forAddress("localhost", port);
channelBuilder = OkHttpChannelBuilder.forAddress("localhost", port)
.negotiationType(io.grpc.transport.okhttp.NegotiationType.PLAINTEXT);
break;
}
default: