提交 489c99b7 作者: Jeromy

no longer hard code gomaxprocs

License: MIT
Signed-off-by: 's avatarJeromy <why@ipfs.io>
上级 1ca2d428
...@@ -10,7 +10,6 @@ import ( ...@@ -10,7 +10,6 @@ import (
"net/url" "net/url"
"os" "os"
"os/signal" "os/signal"
"runtime"
"runtime/pprof" "runtime/pprof"
"strings" "strings"
"sync" "sync"
...@@ -66,7 +65,6 @@ type cmdInvocation struct { ...@@ -66,7 +65,6 @@ type cmdInvocation struct {
// - if anything fails, print error, maybe with help // - if anything fails, print error, maybe with help
func main() { func main() {
rand.Seed(time.Now().UnixNano()) rand.Seed(time.Now().UnixNano())
runtime.GOMAXPROCS(3) // FIXME rm arbitrary choice for n
ctx := logging.ContextWithLoggable(context.Background(), loggables.Uuid("session")) ctx := logging.ContextWithLoggable(context.Background(), loggables.Uuid("session"))
var err error var err error
var invoc cmdInvocation var invoc cmdInvocation
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论