Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify gRPC configuration parameters in Config class #236

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

antas-marcin
Copy link
Collaborator

This PR changes how we configure gRPC connection in Java client.

Assuming that REST endpoint works on localhost:8080 and gRPC endpoint works on localhost:50051

  1. One can set the gRPC settings using Config constructor:
new Config("https", "localhost:8080", null, 10, false, "localhost:50051")
  1. One can set gRPC settings using setGRPCSecured and setGRPCHost methods:
Config config = Config config = new Config("http", "localhost:8080");
config.setGRPCSecured(false);
config.setGRPCHost("localhost:50051");

@antas-marcin antas-marcin merged commit 5d266f2 into main Nov 14, 2023
1 check passed
@antas-marcin antas-marcin deleted the grpc-configuration branch November 14, 2023 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants