Fixed deprecated method in GRPC Java test.

Change-Id: Iccae8fe9409adbf3cd3013a5cf3368e068175ad3
parent 9834ee97
...@@ -141,7 +141,7 @@ public class JavaGrpcTest { ...@@ -141,7 +141,7 @@ public class JavaGrpcTest {
channel = ManagedChannelBuilder.forAddress("localhost", port) channel = ManagedChannelBuilder.forAddress("localhost", port)
// Channels are secure by default (via SSL/TLS). For the example we disable TLS to avoid // Channels are secure by default (via SSL/TLS). For the example we disable TLS to avoid
// needing certificates. // needing certificates.
.usePlaintext(true) .usePlaintext()
.directExecutor() .directExecutor()
.build(); .build();
blockingStub = MonsterStorageGrpc.newBlockingStub(channel); blockingStub = MonsterStorageGrpc.newBlockingStub(channel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment