Skip to content

Commit

Permalink
main: Remove no longer needed max cores config.
Browse files Browse the repository at this point in the history
This removes the code that explicitly configures the runtime to use all
processor cores because that has been the default since Go 1.5.
  • Loading branch information
davecgh committed Nov 15, 2022
1 parent ab226e0 commit c851f17
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions dcrd.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,6 @@ func dcrdMain() error {
}

func main() {
// Use all processor cores.
runtime.GOMAXPROCS(runtime.NumCPU())

// Block and transaction processing can cause bursty allocations. This
// limits the garbage collector from excessively overallocating during
// bursts. This value was arrived at with the help of profiling live
Expand Down

0 comments on commit c851f17

Please sign in to comment.