Skip to content

Commit 4d9fa85

Browse files
committed
Fix grpc api
1 parent 2e6097b commit 4d9fa85

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

contrib/grpc-spring/src/test/java/com/salesforce/grpc/contrib/spring/GrpcServerHostEndToEndTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void serverIsRunningAndSayHelloReturnsExpectedResponse() throws Exception
4949

5050
ManagedChannel channel = ManagedChannelBuilder
5151
.forAddress("localhost", grpcServerHost.getPort())
52-
.usePlaintext(true)
52+
.usePlaintext()
5353
.build();
5454

5555
GreeterGrpc.GreeterFutureStub stub = GreeterGrpc.newFutureStub(channel);

contrib/grpc-spring/src/test/java/com/salesforce/grpc/contrib/spring/GrpcServerHostInProcessEndToEndTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void serverIsRunningAndSayHelloReturnsExpectedResponse() throws Exception
5252

5353
ManagedChannel channel = InProcessChannelBuilder
5454
.forName(SERVER_NAME)
55-
.usePlaintext(true)
55+
.usePlaintext()
5656
.build();
5757

5858
GreeterGrpc.GreeterFutureStub stub = GreeterGrpc.newFutureStub(channel);

demos/grpc-java-contrib-demo/time-client-demo/src/main/java/com/salesforce/servicelibs/timeclient/TimeClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static void main(String[] args) throws Exception {
3535
Channel channel = ManagedChannelBuilder
3636
.forTarget(abstractName)
3737
.nameResolverFactory(StaticResolver.factory(new InetSocketAddress(host, port)))
38-
.usePlaintext(true)
38+
.usePlaintext()
3939
.build();
4040

4141
// Create a CompletableFuture-based stub

0 commit comments

Comments
 (0)