Commit b1dbc1c4 authored by Steven Allen's avatar Steven Allen

fix hidden merge conflicts

Oh for a CI that runs on merge...

License: MIT
Signed-off-by: default avatarSteven Allen <steven@stebalien.com>
parent 4d8b3c9b
...@@ -18,8 +18,8 @@ import ( ...@@ -18,8 +18,8 @@ import (
"encoding/xml" "encoding/xml"
"errors" "errors"
"fmt" "fmt"
node "gx/ipfs/QmNwUEK7QbwSqyKBu3mMtToo8SUc6wQJ7gdZq4gGGJqfnf/go-ipld-format" cid "gx/ipfs/QmcZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY/go-cid"
cid "gx/ipfs/QmeSrf6pzut73u6zLQkRFQ3ygt3k6XFT2kjdYP8Tnkwwyg/go-cid" node "gx/ipfs/Qme5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format"
) )
const inputLimit = 2 << 20 const inputLimit = 2 << 20
...@@ -53,7 +53,7 @@ func (api *ObjectAPI) New(ctx context.Context, opts ...caopts.ObjectNewOption) ( ...@@ -53,7 +53,7 @@ func (api *ObjectAPI) New(ctx context.Context, opts ...caopts.ObjectNewOption) (
n = ft.EmptyDirNode() n = ft.EmptyDirNode()
} }
_, err = api.node.DAG.Add(n) err = api.node.DAG.Add(ctx, n)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -120,7 +120,7 @@ func (api *ObjectAPI) Put(ctx context.Context, src io.Reader, opts ...caopts.Obj ...@@ -120,7 +120,7 @@ func (api *ObjectAPI) Put(ctx context.Context, src io.Reader, opts ...caopts.Obj
return nil, err return nil, err
} }
_, err = api.node.DAG.Add(dagnode) err = api.node.DAG.Add(ctx, dagnode)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -217,7 +217,7 @@ func (api *ObjectAPI) AddLink(ctx context.Context, base coreiface.Path, name str ...@@ -217,7 +217,7 @@ func (api *ObjectAPI) AddLink(ctx context.Context, base coreiface.Path, name str
return nil, err return nil, err
} }
nnode, err := e.Finalize(api.node.DAG) nnode, err := e.Finalize(ctx, api.node.DAG)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -243,7 +243,7 @@ func (api *ObjectAPI) RmLink(ctx context.Context, base coreiface.Path, link stri ...@@ -243,7 +243,7 @@ func (api *ObjectAPI) RmLink(ctx context.Context, base coreiface.Path, link stri
return nil, err return nil, err
} }
nnode, err := e.Finalize(api.node.DAG) nnode, err := e.Finalize(ctx, api.node.DAG)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -280,7 +280,7 @@ func (api *ObjectAPI) patchData(ctx context.Context, path coreiface.Path, r io.R ...@@ -280,7 +280,7 @@ func (api *ObjectAPI) patchData(ctx context.Context, path coreiface.Path, r io.R
} }
pbnd.SetData(data) pbnd.SetData(data)
_, err = api.node.DAG.Add(pbnd) err = api.node.DAG.Add(ctx, pbnd)
if err != nil { if err != nil {
return nil, err return nil, 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