Increase channel buffer size in blockstore.AllKeysChan().
License: MIT Signed-off-by: Kevin Atkinson <k@kevina.org>
Kevin Atkinson committed
Jul 10, 2016 at 15:35 UTC
9e6cc1f112ef42f50c1b11b720bb127e060f18ff
1 file changed
+1
-1
blocks/blockstore/blockstore.go
+1
-1
@@ -196,7 +196,7 @@ func (bs *blockstore) AllKeysChan(ctx context.Context) (<-chan key.Key, error) {
196
}
197
}
198
199
- output := make(chan key.Key)
199
+ output := make(chan key.Key, dsq.KeysOnlyBufSize)
200
go func() {
201
defer func() {
202
res.Process().Close() // ensure exit (signals early exit, too)