1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-02 03:28:25 +08:00

Merge pull request #4433 from ipfs/fix/coreunix-add/ctx

AddWithContext wraps custom context
This commit is contained in:
Whyrusleeping
2017-12-01 17:26:21 +01:00
committed by GitHub

View File

@ -307,7 +307,7 @@ func Add(n *core.IpfsNode, r io.Reader) (string, error) {
func AddWithContext(ctx context.Context, n *core.IpfsNode, r io.Reader) (string, error) {
defer n.Blockstore.PinLock().Unlock()
fileAdder, err := NewAdder(n.Context(), n.Pinning, n.Blockstore, n.DAG)
fileAdder, err := NewAdder(ctx, n.Pinning, n.Blockstore, n.DAG)
if err != nil {
return "", err
}