Commit bb986ebf authored by Jeromy's avatar Jeromy

rename DataSize to FileSize

License: MIT
Signed-off-by: default avatarJeromy <why@ipfs.io>
parent 9796a036
...@@ -105,7 +105,7 @@ func (n *UnixfsNode) GetChild(ctx context.Context, i int, ds dag.DAGService) (*U ...@@ -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 // the passed in DagBuilderHelper is used to store the child node an
// pin it locally so it doesnt get lost // pin it locally so it doesnt get lost
func (n *UnixfsNode) AddChild(child *UnixfsNode, db *DagBuilderHelper) error { func (n *UnixfsNode) AddChild(child *UnixfsNode, db *DagBuilderHelper) error {
n.ufmt.AddBlockSize(child.DataSize()) n.ufmt.AddBlockSize(child.FileSize())
childnode, err := child.GetDagNode() childnode, err := child.GetDagNode()
if err != nil { if err != nil {
...@@ -137,7 +137,7 @@ func (n *UnixfsNode) SetData(data []byte) { ...@@ -137,7 +137,7 @@ func (n *UnixfsNode) SetData(data []byte) {
n.ufmt.Data = data n.ufmt.Data = data
} }
func (n *UnixfsNode) DataSize() uint64 { func (n *UnixfsNode) FileSize() uint64 {
if n.raw { if n.raw {
return uint64(len(n.rawnode.RawData())) return uint64(len(n.rawnode.RawData()))
} }
......
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