// appendData appends the blocks from the given chan to the end of this dag func (dm *DagModifier) appendData(node *mdag.Node, spl chunk.Splitter) (*mdag.Node, error) { dbp := &help.DagBuilderParams{ Dagserv: dm.dagserv, Maxlinks: help.DefaultLinksPerBlock, } return trickle.TrickleAppend(dm.ctx, node, dbp.New(spl)) }
// appendData appends the blocks from the given chan to the end of this dag func (dm *DagModifier) appendData(node *mdag.Node, blks <-chan []byte, errs <-chan error) (*mdag.Node, error) { dbp := &help.DagBuilderParams{ Dagserv: dm.dagserv, Maxlinks: help.DefaultLinksPerBlock, NodeCB: imp.BasicPinnerCB(dm.mp), } return trickle.TrickleAppend(dm.ctx, node, dbp.New(blks, errs)) }