diff --git a/importer/helpers/dagbuilder.go b/importer/helpers/dagbuilder.go index 51fc39f21a18afa3bb535095c8b61783556efa96..1504205d6781a1e37ad4b77298861fbcf68747dc 100644 --- a/importer/helpers/dagbuilder.go +++ b/importer/helpers/dagbuilder.go @@ -5,6 +5,9 @@ import ( "github.com/ipfs/go-ipfs/pin" ) +// NodeCB is callback function for dag generation +// the `root` flag signifies whether or not this is +// the root of a dag. type NodeCB func(node *dag.Node, root bool) error var nilFunc NodeCB = func(_ *dag.Node, _ bool) error { return nil }