mirror of
https://github.com/ipfs/kubo.git
synced 2025-05-17 15:06:47 +08:00
pin: add context and error return to most of the Pinner functions
This commit is contained in:

committed by
Michael Muré

parent
8c358629fb
commit
097b684b42
@ -176,7 +176,7 @@ func (adder *Adder) PinRoot(root ipld.Node) error {
|
||||
}
|
||||
|
||||
adder.pinning.PinWithMode(rnk, pin.Recursive)
|
||||
return adder.pinning.Flush()
|
||||
return adder.pinning.Flush(adder.ctx)
|
||||
}
|
||||
|
||||
func (adder *Adder) outputDirs(path string, fsn mfs.FSNode) error {
|
||||
|
Reference in New Issue
Block a user