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

Fix bug in TestSendDisembargo/SendQueuedResultToCaller #443

Merged
merged 1 commit into from
Feb 4, 2023

Conversation

zenhack
Copy link
Contributor

@zenhack zenhack commented Feb 4, 2023

Sadly, I don't think this is #426, but I noticed it while hunting that down: we set Which to receiverHosted but then set the SenderHosted field. This patch fixes that.

I think we're getting lucky in the test such that it passes anyway because we only ever put one export on the wire so the ID is always zero anyway.

Sadly, I don't think this is capnproto#426, but I noticed it while hunting that
down: we set Which to receiverHosted but then set the SenderHosted
field. This patch fixes that.

I think we're getting lucky in the test such that it passes anyway
because we only ever put one export on the wire so the ID is always zero
anyway.
@zenhack
Copy link
Contributor Author

zenhack commented Feb 4, 2023

Have I mentioned I wish Go had sum types?

@zenhack
Copy link
Contributor Author

zenhack commented Feb 4, 2023

And indeed, this is not #426, since it triggered again. Re-running.

@lthibault
Copy link
Collaborator

Have I mentioned I wish Go had sum types?

It comes so damn close with interfaces/type-switching, too.

@lthibault lthibault merged commit a41a515 into capnproto:main Feb 4, 2023
@zenhack
Copy link
Contributor Author

zenhack commented Feb 4, 2023 via email

@zenhack zenhack deleted the fix-capDescriptor branch February 4, 2023 20:00
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