Commit 0353c0ca authored by Kevin Atkinson's avatar Kevin Atkinson

Fix channel buffer size in namespace datastore to use KeysOnlyBufSize

parent dfb94c6d
......@@ -58,7 +58,13 @@ func (d *datastore) Query(q dsq.Query) (dsq.Results, error) {
return nil, err
}
ch := make(chan dsq.Result)
var ch chan dsq.Result
if q.KeysOnly {
ch = make(chan dsq.Result, dsq.KeysOnlyBufSize)
} else {
ch = make(chan dsq.Result)
}
go func() {
defer close(ch)
defer qr.Close()
......
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