-
Notifications
You must be signed in to change notification settings - Fork 213
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
Update implementation to use non-deprecated api calls #36
base: master
Are you sure you want to change the base?
Conversation
Combines the two open PRs so the tests pass and we don't depend on outdated gRPC internals.
- put codec in subpackage - use encoding.Codec - add comments
- use non-deprecated calls
- use non-deprecated api calls - change `break` statement to `continue` in main handler loop - update tests - make tests actually use the testing logger
- implement Register() func - change receiver names and types
- include updated examples - fix typo
Will this be merged anytime soon? |
I'm also waiting for this to be merged |
Will it ever be merged? Is this repo to maintained anymore @mwitkow ? If you no longer want to maintain can you transfer to someone that does or give someone rights to merge PRs? |
@@ -88,13 +90,13 @@ func (s *handler) handler(srv interface{}, serverStream grpc.ServerStream) error | |||
// this is the happy case where the sender has encountered io.EOF, and won't be sending anymore./ | |||
// the clientStream>serverStream may continue pumping though. | |||
clientStream.CloseSend() | |||
break | |||
continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this fix an issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not in this context. I ran staticcheck
and fixed check SA4011 here.
I updated the implementation to use the newer
grpc/encoding
package.To use
grpc/encoding
Codec interface the proxy has to register the codec asproto
. Otherwise the marshalling/unmarshalling will fail. The proxy codec has to completely overwrite theproto
codec behavior. I extended the codec test to make sure regularproto
message get marshaled/unmarshalled correctly.