Commit 44cd2f79 authored by rht's avatar rht

Make sure ctx in commands are derived from req.Context

License: MIT
Signed-off-by: default avatarrht <rhtbot@gmail.com>
parent 1912a50a
...@@ -48,8 +48,7 @@ func addLink(ctx context.Context, ds dag.DAGService, root *dag.Node, childname s ...@@ -48,8 +48,7 @@ func addLink(ctx context.Context, ds dag.DAGService, root *dag.Node, childname s
// ensure no link with that name already exists // ensure no link with that name already exists
_ = root.RemoveNodeLink(childname) // ignore error, only option is ErrNotFound _ = root.RemoveNodeLink(childname) // ignore error, only option is ErrNotFound
err = root.AddNodeLinkClean(childname, childnd) if err := root.AddNodeLinkClean(childname, childnd); 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