Skip to content

Commit

Permalink
Merge pull request #4433 from ipfs/fix/coreunix-add/ctx
Browse files Browse the repository at this point in the history
AddWithContext wraps custom context
  • Loading branch information
whyrusleeping authored Dec 1, 2017
2 parents 66bde41 + 96e1315 commit abe8ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/coreunix/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit abe8ced

Please sign in to comment.