Skip to content

Commit

Permalink
Update server.go
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec authored Aug 25, 2021
1 parent 1c54d0b commit de8277b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/argo/commands/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ import (
tlsutils "github.com/argoproj/argo-workflows/v3/util/tls"
)

func init() {
pprofutil.Init()
}

func NewServerCommand() *cobra.Command {
var (
authModes []string
Expand Down Expand Up @@ -65,6 +61,7 @@ See %s`, help.ArgoServer),
cmd.SetLogFormatter(logFormat)
stats.RegisterStackDumper()
stats.StartStatsTicker(5 * time.Minute)
pprofutil.Init()

config, err := client.GetConfig().ClientConfig()
if err != nil {
Expand Down

0 comments on commit de8277b

Please sign in to comment.