Skip to content

Commit

Permalink
Treat 0 CPUs as fully single threaded
Browse files Browse the repository at this point in the history
  • Loading branch information
ajsutton committed Aug 27, 2024
1 parent b65afb7 commit 72e643d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state/workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type workerGroup interface {
}

func newWorkerGroup() workerGroup {
if runtime.NumCPU() == 1 {
if runtime.NumCPU() <= 1 {
return &inlineWorkerGroup{}
} else {
var grp errgroup.Group
Expand Down

0 comments on commit 72e643d

Please sign in to comment.