Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Facilitate explicit channel shutdown. #58

Merged
merged 2 commits into from
Aug 18, 2015
Merged

Conversation

deflaux
Copy link
Contributor

@deflaux deflaux commented Aug 18, 2015

This is somewhat convoluted, but it seems to be the current way to facilitate both auth and explicit channel shutdown upon server-side internal errors.

Auth pattern: https://github.com/grpc/grpc-java/blob/master/SECURITY.md#using-oauth2


// Regular RPC example: list all reference set assembly ids.
ReferenceServiceV1BlockingStub refStub =
ReferenceServiceV1Grpc.newBlockingStub(channel);
ReferenceServiceV1Grpc.newBlockingStub(channel.getChannel());
Copy link
Contributor

Choose a reason for hiding this comment

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

channel.getChannel() in particular feels pretty awkward. Maybe it would be better to have GenomicsChannel extend Channel so it could be used directly as a gRPC channel. There is only one abstract method which you can delegate to the gRPC channel you are wrapping.

@deflaux
Copy link
Contributor Author

deflaux commented Aug 18, 2015

@ssgross PTAL

ssgross added a commit that referenced this pull request Aug 18, 2015
Facilitate explicit channel shutdown.
@ssgross ssgross merged commit fedc4a2 into googlegenomics:master Aug 18, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants