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

protoc-gen-go/grpc: make grpc identical to v1.3.5 #1113

Merged
merged 1 commit into from May 4, 2020
Merged

protoc-gen-go/grpc: make grpc identical to v1.3.5 #1113

merged 1 commit into from May 4, 2020

Conversation

dsnet
Copy link
Member

@dsnet dsnet commented May 4, 2020

Even through the grpc package is excluded from our compatibility agreement,
the v1.4.0 release accidentally reverted the package to an older revision.
Update this code to be identical to the v1.3.5 release (barring non-semantic
documentation changes).

Fixes #1111

Even through the grpc package is excluded from our compatibility agreement,
the v1.4.0 release accidentally reverted the package to an older revision.
Update this code to be identical to the v1.3.5 release (barring non-semantic
documentation changes).

Fixes #1111
@dsnet dsnet requested a review from neild May 4, 2020 18:55
@dsnet dsnet merged commit 8d9af28 into master May 4, 2020
@dsnet dsnet deleted the grpc branch May 4, 2020 19:31
This was referenced Mar 16, 2021
methName := generator.CamelCase(method.GetName())
statusPkg := string(g.gen.AddImport(statusPkgPath))
codePkg := string(g.gen.AddImport(codePkgPath))
g.P("return ", nilArg, statusPkg, `.Errorf(`, codePkg, `.Unimplemented, "method `, methName, ` not implemented")`)
Copy link

@n3xem n3xem Feb 28, 2023

Choose a reason for hiding this comment

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

@dsnet
May I ask why you are using the Errorf method? In my view, it should be the Error method since the error message doesn’t require formatting.
please let me know if you remember the answer

Copy link
Member Author

Choose a reason for hiding this comment

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

No idea.

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.

grpc code generator in v1.4.0 (and master) is outdated
3 participants