Skip to content

add gRPC channel to client options #731

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

Merged
merged 1 commit into from
Aug 4, 2022

Conversation

mkolodezny
Copy link
Contributor

No description provided.

} else {
this.channel =
ManagedChannelBuilder.forAddress(options.getHost(), options.getPort())
.defaultLoadBalancingPolicy("round_robin")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is round_robbin a constant somewhere? Should it be?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, no strong opinion here but prefer go with inline mostly

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1345

  • 19 of 52 (36.54%) changed or added relevant lines in 2 files are covered.
  • 31 unchanged lines in 5 files lost coverage.
  • Overall coverage increased (+0.02%) to 60.072%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/java/com/uber/cadence/serviceclient/ClientOptions.java 19 30 63.33%
src/main/java/com/uber/cadence/internal/compatibility/proto/serviceclient/GrpcServiceStubs.java 0 22 0.0%
Files with Coverage Reduction New Missed Lines %
src/main/java/com/uber/cadence/internal/sync/WorkflowThreadContext.java 1 81.58%
src/main/java/com/uber/cadence/internal/worker/BlockCallerPolicy.java 1 62.5%
src/main/java/com/uber/cadence/internal/worker/Poller.java 1 76.98%
src/main/java/com/uber/cadence/internal/compatibility/proto/serviceclient/GrpcServiceStubs.java 3 0%
src/main/java/com/uber/cadence/serviceclient/ClientOptions.java 25 52.33%
Totals Coverage Status
Change from base Build 1343: 0.02%
Covered Lines: 10846
Relevant Lines: 18055

💛 - Coveralls

@mkolodezny mkolodezny merged commit 1d295e3 into cadence-workflow:master Aug 4, 2022
@mkolodezny mkolodezny deleted the a1 branch August 9, 2022 19:30
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.

3 participants