[BAEL-10218] - Updated code to the latest version and modified code

This commit is contained in:
amit2103 2018-11-18 20:09:03 +05:30
parent b970aaac58
commit a98df2add7
2 changed files with 4 additions and 4 deletions

View File

@ -71,9 +71,9 @@
</build>
<properties>
<io.grpc.version>1.5.0</io.grpc.version>
<os-maven-plugin.version>1.5.0.Final</os-maven-plugin.version>
<protobuf-maven-plugin.version>0.5.0</protobuf-maven-plugin.version>
<io.grpc.version>1.16.1</io.grpc.version>
<os-maven-plugin.version>1.6.1</os-maven-plugin.version>
<protobuf-maven-plugin.version>0.6.1</protobuf-maven-plugin.version>
</properties>
</project>

View File

@ -10,7 +10,7 @@ import io.grpc.ManagedChannelBuilder;
public class GrpcClient {
public static void main(String[] args) throws InterruptedException {
ManagedChannel channel = ManagedChannelBuilder.forAddress("localhost", 8080)
.usePlaintext(true)
.usePlaintext()
.build();
HelloServiceGrpc.HelloServiceBlockingStub stub