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

Work around an issue in the coroutine serialization layer #9

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

chriso
Copy link
Contributor

@chriso chriso commented Jun 25, 2024

There's a NPE when deserializing function options from #7. For some reason the coroutine serialization layer deserializes them as null.

Let's work around the issue for now in order to make progress. We don't need to serialize the function options because we serialize the function map directly.

@chriso chriso self-assigned this Jun 25, 2024
for _, opt := range d.opts {
if _, ok := opt.(AnyFunction); ok {
// No need to serialize these options, since we serialize the
// map of registered functions directly.
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we file the issue in https://github.com/dispatchrun/coroutine and comment with a link to it here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@chriso chriso merged commit 1a7e901 into main Jun 25, 2024
3 checks passed
@chriso chriso deleted the serde-npe-workaround branch June 25, 2024 02:48
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