Skip to content

Commit

Permalink
Suppress golangci-lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
anodar committed Oct 23, 2023
1 parent 1d52407 commit 058db54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/genericconf/pprof.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ func StartPprof(address string) {
log.Info("Starting metrics server with pprof", "addr", fmt.Sprintf("http://%s/debug/metrics", address))
log.Info("Pprof endpoint", "addr", fmt.Sprintf("http://%s/debug/pprof", address))
go func() {
// #nosec G114
if err := http.ListenAndServe(address, http.DefaultServeMux); err != nil {
if err := http.ListenAndServe(address, http.DefaultServeMux); /* #nosec G114 */ err != nil {
log.Error("Failure in running pprof server", "err", err)
}
}()
Expand Down

0 comments on commit 058db54

Please sign in to comment.