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:
@ -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))
|
||||
|
Reference in New Issue
Block a user