Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec authored Aug 25, 2021
1 parent de8277b commit 11690fe
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/workflow-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ const (
CLIName = "workflow-controller"
)

func init() {
pprofutil.Init()
}

// NewRootCommand returns an new instance of the workflow-controller main entrypoint
func NewRootCommand() *cobra.Command {
var (
Expand Down Expand Up @@ -72,6 +68,7 @@ func NewRootCommand() *cobra.Command {
cmdutil.SetLogFormatter(logFormat)
stats.RegisterStackDumper()
stats.StartStatsTicker(5 * time.Minute)
pprofutil.Init()

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

0 comments on commit 11690fe

Please sign in to comment.