Commit 5ac81bcd authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

added cancel func calls previously ignored

parent 3831428e
......@@ -86,7 +86,8 @@ func (r *Reader) writeToBuf(dagnode *mdag.Node, path string, depth int) {
}
r.flush()
ctx, _ := context.WithTimeout(context.TODO(), time.Second*60)
ctx, cancel := context.WithTimeout(context.TODO(), time.Second*60)
defer cancel()
for i, ng := range r.dag.GetDAG(ctx, dagnode) {
childNode, err := ng.Get()
......
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