diff --git a/.gradle/6.7/executionHistory/executionHistory.bin b/.gradle/6.7/executionHistory/executionHistory.bin index 2d187ba8c71d198b1034e851c408033c278726c9..7429394f5a3d93ed99461a4b72d00e23a317bd04 100644 Binary files a/.gradle/6.7/executionHistory/executionHistory.bin and b/.gradle/6.7/executionHistory/executionHistory.bin differ diff --git a/.gradle/6.7/executionHistory/executionHistory.lock b/.gradle/6.7/executionHistory/executionHistory.lock index 8eb88c1fb71d58628cf6de2620cd7d7c066a1fea..da6e65ef04d1469d5c286fea4a17d375083ee5ef 100644 Binary files a/.gradle/6.7/executionHistory/executionHistory.lock and b/.gradle/6.7/executionHistory/executionHistory.lock differ diff --git a/.gradle/6.7/fileHashes/fileHashes.bin b/.gradle/6.7/fileHashes/fileHashes.bin index f9aa08c1b3372911b7dbedc40904b49e7c56788a..7d19096aaa40009349742bd7811e75624019dc3e 100644 Binary files a/.gradle/6.7/fileHashes/fileHashes.bin and b/.gradle/6.7/fileHashes/fileHashes.bin differ diff --git a/.gradle/6.7/fileHashes/fileHashes.lock b/.gradle/6.7/fileHashes/fileHashes.lock index 0ba3816a0646a603ddf828f44ce736943e8b9b39..4b97de78b851f740f0e15dd8c8aa1a7a4c409ae9 100644 Binary files a/.gradle/6.7/fileHashes/fileHashes.lock and b/.gradle/6.7/fileHashes/fileHashes.lock differ diff --git a/.gradle/6.7/javaCompile/classAnalysis.bin b/.gradle/6.7/javaCompile/classAnalysis.bin index ed3cbec4858b83daee0c51a4e6786427bb322507..fa5bbf7020f430ee4402e6a4fe1115cbb5d2a5f0 100644 Binary files a/.gradle/6.7/javaCompile/classAnalysis.bin and b/.gradle/6.7/javaCompile/classAnalysis.bin differ diff --git a/.gradle/6.7/javaCompile/javaCompile.lock b/.gradle/6.7/javaCompile/javaCompile.lock index 8238c8c6cc95702a0f7813ee9efc7ab3ab72773b..de894def8b73f1c86666fbef2e02fca11c2232f4 100644 Binary files a/.gradle/6.7/javaCompile/javaCompile.lock and b/.gradle/6.7/javaCompile/javaCompile.lock differ diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index f61e959040b7ec0bcade678a78da9f83ff79aa97..25bfd40b3c35b536a8ea73f0dbe564b55fc9ccc4 100644 Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/build/classes/java/main/grpchelloserver/GreetingServiceClient.class b/build/classes/java/main/grpchelloserver/GreetingServiceClient.class index 856e13423ce5b52618254e5dc62a91f11fa9e812..b06023b4c25f1e8a102bf14360e75bcebbccb706 100644 Binary files a/build/classes/java/main/grpchelloserver/GreetingServiceClient.class and b/build/classes/java/main/grpchelloserver/GreetingServiceClient.class differ diff --git a/build/tmp/compileJava/source-classes-mapping.txt b/build/tmp/compileJava/source-classes-mapping.txt index 522e61bfaf2ef79abbc36239bf545097f4e661d2..4d2c24ca8ba0596c72385ea051af71e06c4cb5c2 100644 --- a/build/tmp/compileJava/source-classes-mapping.txt +++ b/build/tmp/compileJava/source-classes-mapping.txt @@ -65,8 +65,8 @@ it/ewlab/actor/ActorOuterClass.java it.ewlab.actor.ActorOuterClass$ActorOrBuilder grpchelloserver/GreetingServiceImpl.java grpchelloserver.GreetingServiceImpl +actor/Server.java + actor.Server grpchelloserver/GreetingServiceClient.java grpchelloserver.GreetingServiceClient grpchelloserver.GreetingServiceClient$1 -actor/Server.java - actor.Server diff --git a/src/main/java/chat/ChatClient.java b/src/main/java/chat/ChatClient.java index 2961f5ad335ec6ec2185cd62f492713aa23f92de..e2f4ad1f1acb73cee441cf1909268e3e9a724530 100644 --- a/src/main/java/chat/ChatClient.java +++ b/src/main/java/chat/ChatClient.java @@ -33,7 +33,7 @@ public class ChatClient { //opening a connection with chat server - final ManagedChannel channel = ManagedChannelBuilder.forTarget(IP+":"+PORT).usePlaintext(true).build(); + final ManagedChannel channel = ManagedChannelBuilder.forTarget(IP+":"+PORT).usePlaintext().build(); System.out.println("[CHAT CLIENT] Connected!"); diff --git a/src/main/java/grpchelloserver/GreetingServiceClient.java b/src/main/java/grpchelloserver/GreetingServiceClient.java index 23ec5e01d74545ca91732f86990d0e151ad6b226..12beaa18a7bb3f87820e9c16522e92b1ccd6ba24 100644 --- a/src/main/java/grpchelloserver/GreetingServiceClient.java +++ b/src/main/java/grpchelloserver/GreetingServiceClient.java @@ -34,7 +34,7 @@ public class GreetingServiceClient { public static void synchronousCall(){ //plaintext channel on the address (ip/port) which offers the GreetingService service - final ManagedChannel channel = ManagedChannelBuilder.forTarget("localhost:8080").usePlaintext(true).build(); + final ManagedChannel channel = ManagedChannelBuilder.forTarget("localhost:8080").usePlaintext().build(); //creating a blocking stub on the channel GreetingServiceBlockingStub stub = GreetingServiceGrpc.newBlockingStub(channel); @@ -57,7 +57,7 @@ public class GreetingServiceClient { public static void asynchronousStreamCall() throws InterruptedException { //plaintext channel on the address (ip/port) which offers the GreetingService service - final ManagedChannel channel = ManagedChannelBuilder.forTarget("localhost:8080").usePlaintext(true).build(); + final ManagedChannel channel = ManagedChannelBuilder.forTarget("localhost:8080").usePlaintext().build(); //creating an asynchronous stub on the channel GreetingServiceStub stub = GreetingServiceGrpc.newStub(channel);