Skip to content

Should interceptors pass in the Channel that is calling them #546

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

Open
fuzzybinary opened this issue Apr 20, 2022 · 0 comments
Open

Should interceptors pass in the Channel that is calling them #546

fuzzybinary opened this issue Apr 20, 2022 · 0 comments

Comments

@fuzzybinary
Copy link
Contributor

I have a use case for a ClientInterceptor that requires I know what Channel call is being made on, but there's no way to get this information from the intercept call without passing in the channel to the Interceptor's constructor.

Does it make sense to instead pass the Channel in as a parameter to the intercept* calls?

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

No branches or pull requests

1 participant