Commit 4a59b557 authored by Alec Brickner's avatar Alec Brickner

Fix goroutine leak in dag put

License: MIT
Signed-off-by: default avatarAlec Brickner <alecjbrick@gmail.com>
parent fc4ace28
......@@ -128,7 +128,12 @@ into an object of the specified format.
cid := nds[0].Cid()
cids.Add(cid)
outChan <- &OutputObject{Cid: cid}
select {
case outChan <- &OutputObject{Cid: cid}:
case <-req.Context().Done():
return nil
}
}
if err := b.Commit(); err != nil {
......
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