Skip to content

Commit

Permalink
fix RawNode incomplete stats
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMure authored and aschmahmann committed Sep 23, 2021
1 parent 4a8891d commit 9979f9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions raw.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ func (rn *RawNode) Size() (uint64, error) {
// Stat returns some Stats about this node.
func (rn *RawNode) Stat() (*format.NodeStat, error) {
return &format.NodeStat{
Hash: rn.Cid().String(),
NumLinks: 0,
BlockSize: len(rn.RawData()),
LinksSize: 0,
CumulativeSize: len(rn.RawData()),
DataSize: len(rn.RawData()),
}, nil
Expand Down

0 comments on commit 9979f9a

Please sign in to comment.