From bb986ebf4c2be6d0906dd82c68811c11f98e25d6 Mon Sep 17 00:00:00 2001 From: Jeromy <why@ipfs.io> Date: Wed, 19 Oct 2016 11:17:29 -0700 Subject: [PATCH] rename DataSize to FileSize License: MIT Signed-off-by: Jeromy <why@ipfs.io> --- importer/helpers/helpers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/importer/helpers/helpers.go b/importer/helpers/helpers.go index 58007daa7..e374507b7 100644 --- a/importer/helpers/helpers.go +++ b/importer/helpers/helpers.go @@ -105,7 +105,7 @@ func (n *UnixfsNode) GetChild(ctx context.Context, i int, ds dag.DAGService) (*U // the passed in DagBuilderHelper is used to store the child node an // pin it locally so it doesnt get lost func (n *UnixfsNode) AddChild(child *UnixfsNode, db *DagBuilderHelper) error { - n.ufmt.AddBlockSize(child.DataSize()) + n.ufmt.AddBlockSize(child.FileSize()) childnode, err := child.GetDagNode() if err != nil { @@ -137,7 +137,7 @@ func (n *UnixfsNode) SetData(data []byte) { n.ufmt.Data = data } -func (n *UnixfsNode) DataSize() uint64 { +func (n *UnixfsNode) FileSize() uint64 { if n.raw { return uint64(len(n.rawnode.RawData())) } -- GitLab