1
0
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:
Michael Muré
2019-09-15 14:14:42 +02:00
committed by Michael Muré
parent 8c358629fb
commit 097b684b42
14 changed files with 105 additions and 66 deletions

View File

@ -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 {