Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
liamsi committed Jan 16, 2021
1 parent c4a966f commit b7162ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p2p/ipld/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func DataSquareRowOrColumnRawInputParser(r io.Reader, _mhType uint64, _mhLen int
return nil, err
}
}
// to triggert the collection of nodes:
// to trigger the collection of nodes:
_ = n.Root()
return nodes, nil
}
Expand Down Expand Up @@ -148,6 +148,7 @@ func NmtNodeParser(block blocks.Block) (node.Node, error) {
} else if bytes.Equal(domainSeparator, innerPrefix) {
return nmtNode{
cid: block.Cid(),
// TODO namespaceSize*2+sha256.Size should be a constant somewhere
l: data[prefixOffset : prefixOffset+namespaceSize*2+sha256.Size],
r: data[prefixOffset+namespaceSize*2+sha256.Size:],
}, nil
Expand Down

0 comments on commit b7162ac

Please sign in to comment.