• Lucas Molas's avatar
    unixfs: decouple the DAG traversal logic from the DAG reader · ecd031d3
    Lucas Molas authored
    Decouple the DAG traversal logic from the `PBDagReader` encapsulating it in the
    (new) `Walker` structure.
    
    Collapse PB and Buffer DAG readers into one (`dagReader`) removing the
    `bufdagreader.go` and `pbdagreader.go` files, moving all the code to
    `dagreader.go`.
    
    Remove `TestSeekAndReadLarge` and `TestReadAndCancel` which operated directly on
    the `NodePromise` structure that is now abstracted away in `NavigableIPLDNode`,
    in the `go-ipld-format` repo, where they should be recreated.
    
    License: MIT
    Signed-off-by: default avatarLucas Molas <schomatis@gmail.com>
    ecd031d3
unixfs.go 11.1 KB