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

Update implementation to use non-deprecated api calls #36

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

iwittkau
Copy link

I updated the implementation to use the newer grpc/encoding package.

  • update codec
  • move codec to sub-package
  • add tests
  • fix existing tests
  • update docs

To use grpc/encoding Codec interface the proxy has to register the codec as proto. Otherwise the marshalling/unmarshalling will fail. The proxy codec has to completely overwrite the proto codec behavior. I extended the codec test to make sure regular proto message get marshaled/unmarshalled correctly.

Michal Witkowski and others added 10 commits November 20, 2017 18:50
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
@asim
Copy link

asim commented Nov 19, 2018

Will this be merged anytime soon?

@Virtual-felix
Copy link

I'm also waiting for this to be merged

@jose-airspace
Copy link

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

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?

Copy link
Author

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.

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.

5 participants