mirror of https://github.com/status-im/consul.git
Merge pull request #1450 from hashicorp/f-proc-warnings
Removes the GOMAXPROCS warnings which are obsolete for Go 1.5+.
This commit is contained in:
commit
1f57584d39
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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!
|
||||
|
|
Loading…
Reference in New Issue