diff --git a/collector/cmd/collector-metrics/collector-metrics.go b/collector/cmd/collector-metrics/collector-metrics.go index 2c9f7090..49f18df2 100644 --- a/collector/cmd/collector-metrics/collector-metrics.go +++ b/collector/cmd/collector-metrics/collector-metrics.go @@ -17,6 +17,7 @@ import ( utils "github.com/analogj/go-util/utils" "github.com/fatih/color" "github.com/urfave/cli/v2" + _ "go.uber.org/automaxprocs" ) var goos string @@ -37,8 +38,8 @@ func main() { } //we're going to load the config file manually, since we need to validate it. - err = config.ReadConfig(configFilePath) // Find and read the config file - if _, ok := err.(errors.ConfigFileMissingError); ok { // Handle errors reading the config file + err = config.ReadConfig(configFilePath) // Find and read the config file + if _, ok := err.(errors.ConfigFileMissingError); ok { // Handle errors reading the config file //ignore "could not find config file" } else if err != nil { os.Exit(1) diff --git a/collector/cmd/collector-selftest/collector-selftest.go b/collector/cmd/collector-selftest/collector-selftest.go index ac2e2fab..d25e6be1 100644 --- a/collector/cmd/collector-selftest/collector-selftest.go +++ b/collector/cmd/collector-selftest/collector-selftest.go @@ -13,6 +13,7 @@ import ( utils "github.com/analogj/go-util/utils" "github.com/fatih/color" "github.com/urfave/cli/v2" + _ "go.uber.org/automaxprocs" ) var goos string diff --git a/webapp/backend/cmd/scrutiny/scrutiny.go b/webapp/backend/cmd/scrutiny/scrutiny.go index ead9ff99..717f6e53 100644 --- a/webapp/backend/cmd/scrutiny/scrutiny.go +++ b/webapp/backend/cmd/scrutiny/scrutiny.go @@ -16,6 +16,7 @@ import ( utils "github.com/analogj/go-util/utils" "github.com/fatih/color" "github.com/urfave/cli/v2" + _ "go.uber.org/automaxprocs" ) var goos string @@ -36,8 +37,8 @@ func main() { } //we're going to load the config file manually, since we need to validate it. - err = config.ReadConfig(configFilePath) // Find and read the config file - if _, ok := err.(errors.ConfigFileMissingError); ok { // Handle errors reading the config file + err = config.ReadConfig(configFilePath) // Find and read the config file + if _, ok := err.(errors.ConfigFileMissingError); ok { // Handle errors reading the config file //ignore "could not find config file" } else if err != nil { log.Print(color.HiRedString("CONFIG ERROR: %v", err)) diff --git a/webapp/backend/pkg/models/testdata/helper.go b/webapp/backend/pkg/models/testdata/helper.go index 5e2c6234..e90a9418 100644 --- a/webapp/backend/pkg/models/testdata/helper.go +++ b/webapp/backend/pkg/models/testdata/helper.go @@ -12,6 +12,7 @@ import ( "time" "github.com/analogj/scrutiny/webapp/backend/pkg/models/collector" + _ "go.uber.org/automaxprocs" ) func main() {