Skip to content

Work around an issue in the coroutine serialization layer#9

Merged
chriso merged 1 commit into
mainfrom
serde-npe-workaround
Jun 25, 2024
Merged

Work around an issue in the coroutine serialization layer#9
chriso merged 1 commit into
mainfrom
serde-npe-workaround

Conversation

@chriso
Copy link
Copy Markdown
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
Comment thread serde.go
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
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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