File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import (
1717 utils "github.com/analogj/go-util/utils"
1818 "github.com/fatih/color"
1919 "github.com/urfave/cli/v2"
20+ _ "go.uber.org/automaxprocs"
2021)
2122
2223var goos string
@@ -37,8 +38,8 @@ func main() {
3738 }
3839
3940 //we're going to load the config file manually, since we need to validate it.
40- err = config .ReadConfig (configFilePath ) // Find and read the config file
41- if _ , ok := err .(errors.ConfigFileMissingError ); ok { // Handle errors reading the config file
41+ err = config .ReadConfig (configFilePath ) // Find and read the config file
42+ if _ , ok := err .(errors.ConfigFileMissingError ); ok { // Handle errors reading the config file
4243 //ignore "could not find config file"
4344 } else if err != nil {
4445 os .Exit (1 )
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import (
1313 utils "github.com/analogj/go-util/utils"
1414 "github.com/fatih/color"
1515 "github.com/urfave/cli/v2"
16+ _ "go.uber.org/automaxprocs"
1617)
1718
1819var goos string
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import (
1616 utils "github.com/analogj/go-util/utils"
1717 "github.com/fatih/color"
1818 "github.com/urfave/cli/v2"
19+ _ "go.uber.org/automaxprocs"
1920)
2021
2122var goos string
@@ -36,8 +37,8 @@ func main() {
3637 }
3738
3839 //we're going to load the config file manually, since we need to validate it.
39- err = config .ReadConfig (configFilePath ) // Find and read the config file
40- if _ , ok := err .(errors.ConfigFileMissingError ); ok { // Handle errors reading the config file
40+ err = config .ReadConfig (configFilePath ) // Find and read the config file
41+ if _ , ok := err .(errors.ConfigFileMissingError ); ok { // Handle errors reading the config file
4142 //ignore "could not find config file"
4243 } else if err != nil {
4344 log .Print (color .HiRedString ("CONFIG ERROR: %v" , err ))
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import (
1212 "time"
1313
1414 "github.com/analogj/scrutiny/webapp/backend/pkg/models/collector"
15+ _ "go.uber.org/automaxprocs"
1516)
1617
1718func main () {
You can’t perform that action at this time.
0 commit comments