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

Inline service name into the generated path #633

Merged
merged 1 commit into from
Nov 13, 2019

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Nov 13, 2019

Motivation:

We gave users the option to customise how the path for the RPC was
formatted. The protocol allows this but discourages it.

Modifications:

  • Inline the service name into the generated code
  • Remove GRPCServiceClient and just use GRPCClient
  • Update generated code

Result:

  • Users are now discouraged in the strongest possible way to not use
    custom paths.
  • Generated code is simpler.

Motivation:

We gave users the option to customise how the path for the RPC was
formatted. The protocol allows this but discourages it.

Modifications:

- Inline the service name into the generated code
- Remove GRPCServiceClient and just use GRPCClient
- Update generated code

Result:

- Users are now discouraged in the strongest possible way to not use
  custom paths.
- Generated code is simpler.
@glbrntt
Copy link
Collaborator Author

glbrntt commented Nov 13, 2019

Fixes #628

@glbrntt glbrntt requested a review from MrMage November 13, 2019 14:29
@glbrntt glbrntt merged commit 2685837 into grpc:nio Nov 13, 2019
@glbrntt glbrntt deleted the gb-inline-servicename branch November 13, 2019 18:20
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