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

Adjust director to satisfy proxy.StreamDirector interface #2

Merged
merged 2 commits into from
Mar 13, 2018

Conversation

shaxbee
Copy link
Contributor

@shaxbee shaxbee commented Feb 8, 2018

Currently caddy-grpc plugin fails to compile due to following error:

../../pieterlouw/caddy-grpc/server.go:45:54: cannot use director (type func("context".Context, string) (*grpc.ClientConn, error)) as type proxy.StreamDirector in argument to proxy.TransparentHandler

This is solved by returning original context from director.

@mholt
Copy link

mholt commented Mar 13, 2018

@pieterlouw FYI, I'm seeing these errors in the Caddy build server logs, so people are unable to download Caddy with this plugin right now. This PR should fix it.

@pieterlouw pieterlouw merged commit 0025ce2 into pieterlouw:master Mar 13, 2018
@pieterlouw
Copy link
Owner

Thanks @shaxbee.
Apologies for sleeping on this! The PR has been merged.

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.

None yet

3 participants