Merge pull request #610 from peco/fix-gomaxprocs

This is so 2010
This commit is contained in:
lestrrat 2026-02-16 21:58:51 +09:00 committed by GitHub
commit b7f50d8a33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,6 @@ package main
import (
"fmt"
"os"
"runtime"
"context"
@ -26,9 +25,6 @@ func _main() int {
if pdebug.Enabled {
pdebug.DefaultCtx.Writer = os.Stderr
}
if envvar := os.Getenv("GOMAXPROCS"); envvar == "" {
runtime.GOMAXPROCS(runtime.NumCPU())
}
ctx, cancel := context.WithCancel(context.Background())
defer cancel()