1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-10 14:34:24 +08:00

make callback take a node instead of a key

This commit is contained in:
Jeromy
2015-05-28 08:28:59 -07:00
parent dd928a2b1d
commit b660f937bd
5 changed files with 33 additions and 28 deletions

View File

@ -309,7 +309,7 @@ func (dm *DagModifier) appendData(node *mdag.Node, blks <-chan []byte) (*mdag.No
dbp := &help.DagBuilderParams{
Dagserv: dm.dagserv,
Maxlinks: help.DefaultLinksPerBlock,
BlockCB: imp.BasicPinnerCB(dm.mp),
NodeCB: imp.BasicPinnerCB(dm.mp),
}
return trickle.TrickleAppend(node, dbp.New(blks))