mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-27 16:07:42 +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() {
|
||||
defer func() {
|
||||
res.Process().Close() // ensure exit (signals early exit, too)
|
||||
|
Reference in New Issue
Block a user