Skip to content

Commit 004f5fa

Browse files
committed
fix: use correct size of the node
1 parent 18ff934 commit 004f5fa

File tree

1 file changed

+1
-2
lines changed
  • packages/ipfs-unixfs-exporter/src/resolvers

1 file changed

+1
-2
lines changed

packages/ipfs-unixfs-exporter/src/resolvers/raw.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ const resolve = async (cid, name, path, toResolve, resolve, depth, blockService,
4545
cid,
4646
content: rawContent(block.bytes),
4747
depth,
48-
// TODO vmx 2021-03-24: Check if `size` is needed
49-
size: 0,
48+
size: block.bytes.length,
5049
node: block.bytes
5150
}
5251
}

0 commit comments

Comments
 (0)