Skip to content

Commit 5adae2f

Browse files
committed
save
1 parent 7787711 commit 5adae2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

db/integrity/commitment_integirty.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import (
2525
"fmt"
2626
"math/rand"
2727
"path/filepath"
28+
"runtime"
2829
"sort"
2930
"strings"
3031
"sync"
@@ -834,7 +835,7 @@ func CheckCommitmentHistAtBlkRange(ctx context.Context, db kv.TemporalRoDB, br s
834835
}
835836
start := time.Now()
836837
g, ctx := errgroup.WithContext(ctx)
837-
g.SetLimit(estimate.AlmostAllCPUs())
838+
g.SetLimit(runtime.GOMAXPROCS(-1)) // all cpus, because no producer-worker
838839
for blockNum := from; blockNum < to; blockNum++ {
839840
blockNum := blockNum
840841
g.Go(func() error {

0 commit comments

Comments
 (0)