Skip to content

Commit

Permalink
fix: min cpu count
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Oct 31, 2024
1 parent dd8b7f3 commit a39f3ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storer/sample.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (db *DB) ReserveSample(
return swarm.NewPrefixHasher(anchor)
}

workers := runtime.NumCPU()
workers := max(4, runtime.NumCPU())
db.logger.Debug("reserve sampler workers", "count", workers)

for i := 0; i < workers; i++ {
Expand Down

0 comments on commit a39f3ab

Please sign in to comment.