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

Allow empty packages - fixes #381 #382

Merged
merged 2 commits into from
Jun 29, 2020

Conversation

tylerhawkes
Copy link
Contributor

Motivation

If prost allows for no packages then tonic generates bad endpoints for both clients and servers. See #381.

Solution

The solution is to make the . between the package name and service name dependent on whether or not the package is empty.

@tylerhawkes tylerhawkes changed the title Allowing package to be empty fixes https:/hyperium/tonic/issues/381 Allowing package to be empty fixes #381 Jun 26, 2020
@tylerhawkes tylerhawkes changed the title Allowing package to be empty fixes #381 Allow empty packages - fixes #381 Jun 26, 2020
@LucioFranco
Copy link
Member

Looks like you just need to run rustfmt and we can merge this thanks!

@tylerhawkes
Copy link
Contributor Author

tylerhawkes commented Jun 26, 2020

@LucioFranco Should be good to go now.

Copy link
Member

@LucioFranco LucioFranco left a comment

Choose a reason for hiding this comment

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

thanks!

@LucioFranco LucioFranco merged commit f085aba into hyperium:master Jun 29, 2020
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