diff --git a/src/main/java/grpchelloserver/GreetingServiceClient.java b/src/main/java/grpchelloserver/GreetingServiceClient.java index 1f5c9927fba9afa253fdce672cc8009000abe537..23ec5e01d74545ca91732f86990d0e151ad6b226 100644 --- a/src/main/java/grpchelloserver/GreetingServiceClient.java +++ b/src/main/java/grpchelloserver/GreetingServiceClient.java @@ -1,6 +1,7 @@ package grpchelloserver; import com.example.grpc.GreetingServiceGrpc; +import com.example.grpc.GreetingServiceGrpc.*; import com.example.grpc.GreetingServiceOuterClass.*; import io.grpc.ManagedChannel; import io.grpc.ManagedChannelBuilder; @@ -36,7 +37,7 @@ public class GreetingServiceClient { final ManagedChannel channel = ManagedChannelBuilder.forTarget("localhost:8080").usePlaintext(true).build(); //creating a blocking stub on the channel - GreetingServiceGrpc.GreetingServiceBlockingStub stub = GreetingServiceGrpc.newBlockingStub(channel); + GreetingServiceBlockingStub stub = GreetingServiceGrpc.newBlockingStub(channel); //creating the HelloResponse object which will be provided as input to the RPC method HelloRequest request = HelloRequest.newBuilder().setName("Pippo").build(); @@ -59,7 +60,7 @@ public class GreetingServiceClient { final ManagedChannel channel = ManagedChannelBuilder.forTarget("localhost:8080").usePlaintext(true).build(); //creating an asynchronous stub on the channel - GreetingServiceGrpc.GreetingServiceStub stub = GreetingServiceGrpc.newStub(channel); + GreetingServiceStub stub = GreetingServiceGrpc.newStub(channel); //creating the HelloResponse object which will be provided as input to the RPC method HelloRequest request = HelloRequest.newBuilder().setName("Pippo").build();