Commit 95595c1a authored by Hlib's avatar Hlib

add GetIPLDNode() method to NavigableNode

parent ea9b6625
......@@ -134,7 +134,7 @@ func (nn *NavigableIPLDNode) ChildTotal() uint {
// function.
// TODO: Check for errors to avoid a panic?
func ExtractIPLDNode(node NavigableNode) Node {
return node.(*NavigableIPLDNode).GetIPLDNode()
return node.GetIPLDNode()
}
// TODO: `Cleanup` is not supported at the moment in the `Walker`.
......
......@@ -116,6 +116,9 @@ type NavigableNode interface {
// ChildTotal returns the number of children of the `ActiveNode`.
ChildTotal() uint
// GetIPLDNode returns actual IPLD Node
GetIPLDNode() Node
// TODO: Evaluate providing the `Cleanup` and `Reset` methods.
// Cleanup is an optional method that is called by the `Walker` when
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment