Unverified Commit 9b90054a authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #31 from ipfs/fix/close-chan-test-dag

close the node channel in GetMany in the test dag
parents 23f9023c e2c4d375
...@@ -38,6 +38,7 @@ func (d *testDag) GetMany(ctx context.Context, cids []*cid.Cid) <-chan *NodeOpti ...@@ -38,6 +38,7 @@ func (d *testDag) GetMany(ctx context.Context, cids []*cid.Cid) <-chan *NodeOpti
out <- &NodeOption{Err: ErrNotFound} out <- &NodeOption{Err: ErrNotFound}
} }
} }
close(out)
return out return out
} }
......
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