Commit 4bed3877 authored by Whyrusleeping's avatar Whyrusleeping Committed by GitHub

Merge pull request #4640 from ipfs/doc/godoc-importer

Docs: golint-ify  "importers" module
parents 53bab4f9 6f545b7e
......@@ -174,6 +174,8 @@ func (n *FSNode) GetBytes() ([]byte, error) {
return proto.Marshal(pbn)
}
// FileSize returns the total size of this tree. That is, the size of
// the data in this node plus the size of all its children.
func (n *FSNode) FileSize() uint64 {
return uint64(len(n.Data)) + n.subtotal
}
......
......@@ -362,7 +362,7 @@ func (dm *DagModifier) appendData(nd ipld.Node, spl chunk.Splitter) (ipld.Node,
Prefix: &dm.Prefix,
RawLeaves: dm.RawLeaves,
}
return trickle.TrickleAppend(dm.ctx, nd, dbp.New(spl))
return trickle.Append(dm.ctx, nd, dbp.New(spl))
default:
return nil, ErrNotUnixfs
}
......
......@@ -63,7 +63,7 @@ func GetNode(t testing.TB, dserv ipld.DAGService, data []byte, opts NodeOpts) ip
RawLeaves: opts.RawLeavesUsed,
}
node, err := trickle.TrickleLayout(dbp.New(SizeSplitterGen(500)(in)))
node, err := trickle.Layout(dbp.New(SizeSplitterGen(500)(in)))
if err != nil {
t.Fatal(err)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment