Merge pull request #5718 from amit2103/BAEL-10218

[BAEL-10218] - Updated code to the latest version and modified code
This commit is contained in:
Loredana Crusoveanu 2018-11-18 21:15:33 +02:00 committed by GitHub
commit a66e6de800
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -71,9 +71,8 @@
</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