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

unixfs: refactor precalcNextBuf #5237

Merged
merged 2 commits into from
Jul 18, 2018
Merged

unixfs: refactor precalcNextBuf #5237

merged 2 commits into from
Jul 18, 2018

Commits on Jul 16, 2018

  1. unixfs: refactor switch in precalcNextBuf

    Do not use `NewDagReader` just for the `RawNode` case.
    Treat invalid UnixFS types in the same case.
    
    License: MIT
    Signed-off-by: Lucas Molas <[email protected]>
    schomatis committed Jul 16, 2018
    Configuration menu
    Copy the full SHA
    a1d2073 View commit details
    Browse the repository at this point in the history
  2. unixfs: split precalcNextBuf

    Create new `loadBufNode` function to handle the `buf` logic which is unrelated
    to the main `precalcNextBuf` logic of processing promises to fetch nodes.
    
    License: MIT
    Signed-off-by: Lucas Molas <[email protected]>
    schomatis committed Jul 16, 2018
    Configuration menu
    Copy the full SHA
    13d9110 View commit details
    Browse the repository at this point in the history