mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 00:39:31 +08:00
Increase channel buffer size in blockstore.AllKeysChan().
License: MIT Signed-off-by: Kevin Atkinson <k@kevina.org>
This commit is contained in:
@ -196,7 +196,7 @@ func (bs *blockstore) AllKeysChan(ctx context.Context) (<-chan key.Key, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
output := make(chan key.Key)
|
output := make(chan key.Key, dsq.KeysOnlyBufSize)
|
||||||
go func() {
|
go func() {
|
||||||
defer func() {
|
defer func() {
|
||||||
res.Process().Close() // ensure exit (signals early exit, too)
|
res.Process().Close() // ensure exit (signals early exit, too)
|
||||||
|
Reference in New Issue
Block a user