Unverified Commit abe8ced8 authored by Whyrusleeping's avatar Whyrusleeping Committed by GitHub

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

AddWithContext wraps custom context
parents 66bde413 96e1315c
......@@ -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
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment