Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
bb986ebf
Commit
bb986ebf
authored
8 years ago
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename DataSize to FileSize
License: MIT Signed-off-by:
Jeromy
<
why@ipfs.io
>
parent
9796a036
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
importer/helpers/helpers.go
importer/helpers/helpers.go
+2
-2
No files found.
importer/helpers/helpers.go
View file @
bb986ebf
...
...
@@ -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
.
Data
Size
())
n
.
ufmt
.
AddBlockSize
(
child
.
File
Size
())
childnode
,
err
:=
child
.
GetDagNode
()
if
err
!=
nil
{
...
...
@@ -137,7 +137,7 @@ func (n *UnixfsNode) SetData(data []byte) {
n
.
ufmt
.
Data
=
data
}
func
(
n
*
UnixfsNode
)
Data
Size
()
uint64
{
func
(
n
*
UnixfsNode
)
File
Size
()
uint64
{
if
n
.
raw
{
return
uint64
(
len
(
n
.
rawnode
.
RawData
()))
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment