Skip to content

Find, verify, and analyze leaked credentials

[chore] - move automaxprocs to init (#3143)

ahravb193febab571
diff --git a/main.go b/main.go
index b6a265144..b376d7bcc 100644
--- a/main.go
+++ b/main.go
@@ -275,6 +275,8 @@ var (
)
func init() {
+ _, _ = maxprocs.Set()
+
for i, arg := range os.Args {
if strings.HasPrefix(arg, "--") {
split := strings.SplitN(arg, "=", 2)
@@ -350,7 +352,6 @@ func main() {
}
func run(state overseer.State) {
- _, _ = maxprocs.Set()
ctx, cancel := context.WithCancelCause(context.Background())
defer cancel(nil)