Remove hard-coded grpc port

This commit is contained in:
Soby Chacko
2021-09-15 16:43:49 -04:00
parent ec28672adf
commit 544b293496

View File

@@ -64,7 +64,7 @@ public final class GrpcUtils {
}
public static Message<byte[]> requestReply(String host, int port, Message<byte[]> inputMessage) {
ManagedChannel channel = ManagedChannelBuilder.forAddress("localhost", 55555)
ManagedChannel channel = ManagedChannelBuilder.forAddress("localhost", port)
.usePlaintext().build();
MessagingServiceGrpc.MessagingServiceBlockingStub stub = MessagingServiceGrpc
.newBlockingStub(channel);