mirror of
https://github.com/openshift/image-registry.git
synced 2026-02-05 09:45:55 +01:00
Set GOMAXPROCS by default
This commit is contained in:
committed by
David Eads
parent
50ce778b2b
commit
01630a2b68
@@ -4,12 +4,14 @@ import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"os"
|
||||
"runtime"
|
||||
|
||||
log "github.com/Sirupsen/logrus"
|
||||
"github.com/openshift/origin/pkg/cmd/dockerregistry"
|
||||
)
|
||||
|
||||
func main() {
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
flag.Parse()
|
||||
|
||||
// TODO convert to flags instead of a config file?
|
||||
|
||||
Reference in New Issue
Block a user