Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: proper tsize encoding in sharded files
  • Loading branch information
rvagg committed Aug 25, 2023
commit c9c7a798df8df69067f4355ec682724a122a22c9
4 changes: 2 additions & 2 deletions data/builder/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ func fileTreeRecursive(depth int, children []ipld.Link, childLen []uint64, src c
}
pbn := dpbb.Build()

link, _, err := sizedStore(ls, fileLinkProto, pbn)
link, sz, err := sizedStore(ls, fileLinkProto, pbn)
if err != nil {
return nil, 0, err
}
return link, totalSize, nil
return link, totalSize + sz, nil
}

// BuildUnixFSDirectoryEntry creates the link to a file or directory as it appears within a unixfs directory.
Expand Down