File tree Expand file tree Collapse file tree 6 files changed +12
-4
lines changed Expand file tree Collapse file tree 6 files changed +12
-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 @@ -18,6 +18,7 @@ require (
18
18
github.com/spf13/viper v1.14.0
19
19
github.com/stretchr/testify v1.8.1
20
20
github.com/urfave/cli/v2 v2.2.0
21
+ go.uber.org/automaxprocs v1.5.3
21
22
golang.org/x/sync v0.1.0
22
23
gorm.io/gorm v1.23.5
23
24
)
Original file line number Diff line number Diff line change @@ -650,6 +650,7 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
650
650
github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
651
651
github.com/posener/complete v1.1.1 /go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI =
652
652
github.com/posener/complete v1.2.3 /go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s =
653
+ github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4g =
653
654
github.com/prometheus/client_golang v0.9.1 /go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw =
654
655
github.com/prometheus/client_golang v1.0.0 /go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo =
655
656
github.com/prometheus/client_golang v1.4.0 /go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU =
@@ -762,6 +763,8 @@ go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
762
763
go.uber.org/atomic v1.6.0 /go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ =
763
764
go.uber.org/atomic v1.7.0 /go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc =
764
765
go.uber.org/atomic v1.9.0 /go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc =
766
+ go.uber.org/automaxprocs v1.5.3 h1:kWazyxZUrS3Gs4qUpbwo5kEIMGe/DAvi5Z4tl2NW4j8 =
767
+ go.uber.org/automaxprocs v1.5.3 /go.mod h1:eRbA25aqJrxAbsLO0xy5jVwPt7FQnRgjW+efnwa1WM0 =
765
768
go.uber.org/goleak v1.1.11 /go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ =
766
769
go.uber.org/multierr v1.1.0 /go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0 =
767
770
go.uber.org/multierr v1.5.0 /go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU =
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