1
0
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:
Clayton Coleman
2015-04-29 15:33:35 -04:00
committed by David Eads
parent 50ce778b2b
commit 01630a2b68

View File

@@ -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?