-
Notifications
You must be signed in to change notification settings - Fork 46
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
add a SkipNext
method on block reader
#338
Conversation
} | ||
|
||
if sctSize == 0 { | ||
_, _, err := cid.CidFromBytes([]byte{}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Props for this hack to get the right error msg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm if it serves purpose, although I'm a little skeptical that the skipping is going to save much aside from passing slices around given the likely layering of buffered reads down to the OS and the size of our blocks being relatively small. But maybe that's worth it?
Co-authored-by: Rod Vagg <[email protected]>
alternative to #337