You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2020. It is now read-only.
From @dcoutts:
> The uncheckedLookAhead is actually a bit dangerous
> and rather misleading. It only does what you expect
> if all the input is supplied in one chunk, since it
> only looks up to the end of the chunk. If acid-state
> uses the incremental interface to deserialise in e.g.
> 4k chunks then this can fail at a chunk boundary.
I switch to using `Alternative` to run the non-legacy
parser first, and if it fails, to run the legacy parser.
This seems to leverage Cereal's `fail` mechanism the way
it is intended - when the first parser fails, no input is
consumed, and the second parser is run.
0 commit comments