aboutsummaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorEric Gribkoff <ericgribkoff@google.com>2018-06-05 12:27:31 -0700
committerGitHub <noreply@github.com>2018-06-05 12:27:31 -0700
commitd227852b30cdb001737608094d8044501e0f940d (patch)
treec55abd28c0b35d646f54554c34097a2bdf2494c3 /benchmarks
parent4c4fda3e5d4a08972d48f5e1435bdc5f335350ee (diff)
downloadgrpc-grpc-java-d227852b30cdb001737608094d8044501e0f940d.tar.gz
okhttp: deprecate OkHttpChannelBuilder#negotiationType (#4533)
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/src/jmh/java/io/grpc/benchmarks/TransportBenchmark.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/benchmarks/src/jmh/java/io/grpc/benchmarks/TransportBenchmark.java b/benchmarks/src/jmh/java/io/grpc/benchmarks/TransportBenchmark.java
index 75084238c..ef1015c4f 100644
--- a/benchmarks/src/jmh/java/io/grpc/benchmarks/TransportBenchmark.java
+++ b/benchmarks/src/jmh/java/io/grpc/benchmarks/TransportBenchmark.java
@@ -132,8 +132,7 @@ public class TransportBenchmark {
int port = pickUnusedPort();
InetSocketAddress address = new InetSocketAddress("localhost", port);
serverBuilder = NettyServerBuilder.forAddress(address);
- channelBuilder = OkHttpChannelBuilder.forAddress("localhost", port)
- .negotiationType(io.grpc.okhttp.NegotiationType.PLAINTEXT);
+ channelBuilder = OkHttpChannelBuilder.forAddress("localhost", port).usePlaintext();
break;
}
default: