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 (
17
17
utils "github.com/analogj/go-util/utils"
18
18
"github.com/fatih/color"
19
19
"github.com/urfave/cli/v2"
20
+ _ "go.uber.org/automaxprocs"
20
21
)
21
22
22
23
var goos string
@@ -37,8 +38,8 @@ func main() {
37
38
}
38
39
39
40
//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
42
43
//ignore "could not find config file"
43
44
} else if err != nil {
44
45
os .Exit (1 )
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import (
13
13
utils "github.com/analogj/go-util/utils"
14
14
"github.com/fatih/color"
15
15
"github.com/urfave/cli/v2"
16
+ _ "go.uber.org/automaxprocs"
16
17
)
17
18
18
19
var goos string
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import (
16
16
utils "github.com/analogj/go-util/utils"
17
17
"github.com/fatih/color"
18
18
"github.com/urfave/cli/v2"
19
+ _ "go.uber.org/automaxprocs"
19
20
)
20
21
21
22
var goos string
@@ -36,8 +37,8 @@ func main() {
36
37
}
37
38
38
39
//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
41
42
//ignore "could not find config file"
42
43
} else if err != nil {
43
44
log .Print (color .HiRedString ("CONFIG ERROR: %v" , err ))
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import (
12
12
"time"
13
13
14
14
"github.com/analogj/scrutiny/webapp/backend/pkg/models/collector"
15
+ _ "go.uber.org/automaxprocs"
15
16
)
16
17
17
18
func main () {
You can’t perform that action at this time.
0 commit comments