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

rust: nom parsing fix-up for eof error [INFRA-125] #788

Merged
merged 8 commits into from
Mar 23, 2020

Conversation

silverjam
Copy link
Contributor

@silverjam silverjam commented Mar 23, 2020

Apparently nom has two cases were it can return "not enough data", there's an Incomplete return type and an EOF error. I'm not sure in what cases it would return one vs the other, but the EOF error here would cause us the drop messages in the Rust version of sbp2json (which was surfaced while testing the Rust variant of json2sbp).

TODO:

  • Add unit test

@silverjam silverjam changed the title rust: nom parsing fix-up for eof error rust: nom parsing fix-up for eof error [INFRA-125] Mar 23, 2020
@silverjam silverjam requested a review from jbangelo March 23, 2020 05:11
Copy link
Contributor

@jbangelo jbangelo left a comment

Choose a reason for hiding this comment

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

Good catch! Would we want to up the version number for this?

@silverjam
Copy link
Contributor Author

Good catch! Would we want to up the version number for this?

You mean make a new release? Yeah, I'll do that sometime this week.

@silverjam silverjam merged commit c9524cc into master Mar 23, 2020
@silverjam silverjam deleted the silverjam/sbp2json branch March 23, 2020 19:06
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