diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2021-03-24 09:29:38 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-24 09:29:38 -0700 |
| commit | 26657f1d7253c61e1346177e43d2d761749901a1 (patch) | |
| tree | 175951241589154a820c445008c5937097dfe176 /weed/command/server.go | |
| parent | a801332b0dc44ea3239e437b845e210c840e125e (diff) | |
| parent | 9ce82a9cd288dc010354cfcf89bc3f0729a5272c (diff) | |
| download | seaweedfs-26657f1d7253c61e1346177e43d2d761749901a1.tar.xz seaweedfs-26657f1d7253c61e1346177e43d2d761749901a1.zip | |
Merge pull request #1943 from kmlebedev/maxCPUs
GOMAXPROCS use defaults to the value of runtime.NumCPU
Diffstat (limited to 'weed/command/server.go')
| -rw-r--r-- | weed/command/server.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/weed/command/server.go b/weed/command/server.go index 7b184a329..aef61a93c 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -3,7 +3,6 @@ package command import ( "fmt" "os" - "runtime" "runtime/pprof" "strings" "time" @@ -192,7 +191,6 @@ func runServer(cmd *Command, args []string) bool { webdavOptions.filer = &filerAddress msgBrokerOptions.filer = &filerAddress - runtime.GOMAXPROCS(runtime.NumCPU()) go stats_collect.StartMetricsServer(*serverMetricsHttpPort) folders := strings.Split(*volumeDataFolders, ",") |
