Skip to content

Commit

Permalink
disable automaxprocs logging
Browse files Browse the repository at this point in the history
  • Loading branch information
firefart committed Feb 8, 2024
1 parent bac64db commit 69a647f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ import (
"github.com/OJ/gobuster/v3/libgobuster"
"github.com/urfave/cli/v2"

_ "go.uber.org/automaxprocs"
"go.uber.org/automaxprocs/maxprocs"
)

func init() {
maxprocs.Set()

Check failure on line 23 in main.go

View workflow job for this annotation

GitHub Actions / lint

Error return value of `maxprocs.Set` is not checked (errcheck)
}

func main() {
cli.VersionPrinter = func(cCtx *cli.Context) {
fmt.Printf("gobuster version %s\n", libgobuster.VERSION)
Expand Down

0 comments on commit 69a647f

Please sign in to comment.