Skip to content

Commit

Permalink
Merge pull request hashicorp#1450 from hashicorp/f-proc-warnings
Browse files Browse the repository at this point in the history
Removes the GOMAXPROCS warnings which are obsolete for Go 1.5+.
  • Loading branch information
slackpad committed Nov 26, 2015
2 parents 3345d73 + a61d89d commit 1f57584
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
5 changes: 0 additions & 5 deletions command/agent/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,11 +565,6 @@ func (c *Command) Run(args []string) int {
return 1
}

// Check GOMAXPROCS
if runtime.GOMAXPROCS(0) == 1 {
c.Ui.Error("WARNING: It is highly recommended to set GOMAXPROCS higher than 1")
}

// Setup the log outputs
logGate, logWriter, logOutput := c.setupLoggers(config)
if logWriter == nil {
Expand Down
15 changes: 0 additions & 15 deletions command/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,6 @@ func (i *InfoCommand) Run(args []string) int {
return 1
}

// Check for specific warnings
didWarn := false
runtime, ok := stats["runtime"]
if ok {
if maxprocs := runtime["max_procs"]; maxprocs == "1" {
i.Ui.Output("WARNING: It is highly recommended to set GOMAXPROCS higher than 1")
didWarn = true
}
}

// Add a blank line if there are any warnings
if didWarn {
i.Ui.Output("")
}

// Get the keys in sorted order
keys := make([]string, 0, len(stats))
for key := range stats {
Expand Down
1 change: 0 additions & 1 deletion website/source/intro/getting-started/agent.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ For simplicity, we'll run a single Consul agent in server mode:
$ consul agent -server -bootstrap-expect 1 -data-dir /tmp/consul
==> WARNING: BootstrapExpect Mode is specified as 1; this is the same as Bootstrap mode.
==> WARNING: Bootstrap mode enabled! Do not enable unless necessary
==> WARNING: It is highly recommended to set GOMAXPROCS higher than 1
==> Starting Consul agent...
==> Starting Consul agent RPC...
==> Consul agent running!
Expand Down

0 comments on commit 1f57584

Please sign in to comment.