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

Make writer field of RPCReceiver public. #9

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

sipsma
Copy link
Contributor

@sipsma sipsma commented Jul 6, 2023

Need this in Dagger to create an implementation of buildkit session attachable that wraps RPCReceiver.

@vito here's where it's used in the session frontend PR: dagger/dagger@22af8f0#diff-a92e280e12097c7a058672dc80551529f7dfed8e9001beeff1109d518a0e89d0R422-R450

Kind of neat in that because progrock uses grpc, we can just directly attach the client/server over the session's grpc conn and forward events from graphql server back to client(s).

Need this in Dagger to create an implementation of buildkit session
attachable that wraps RPCReceiver.

Signed-off-by: Erik Sipsma <[email protected]>
@vito
Copy link
Owner

vito commented Jul 6, 2023

Oh gotcha - so you just need a way to manually construct a *RPCReceiver so you can directly wire it into an existing gRPC server?

I think I would prefer a NewRPCReceiver constructor just to be safe. I'll just merge this and make that change on top. Thanks!

@vito vito merged commit b6968dc into vito:main Jul 6, 2023
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.

2 participants