Skip to content

Commit

Permalink
fix: set default worker count minimum value (#228)
Browse files Browse the repository at this point in the history
Fixes #225
  • Loading branch information
agaffney authored Jul 15, 2024
1 parent 88642d0 commit b3afd22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ var globalConfig = &Config{
// The default worker config is somewhat conservative: worker count is set
// to half of the available logical CPUs
Miner: MinerConfig{
WorkerCount: runtime.NumCPU() / 2,
WorkerCount: max(1, runtime.NumCPU()/2),
HashRateInterval: 60,
},
Network: "mainnet",
Expand Down

0 comments on commit b3afd22

Please sign in to comment.