Skip to content

Commit

Permalink
fix: goroutine leak
Browse files Browse the repository at this point in the history
  • Loading branch information
0xff-dev committed Oct 7, 2023
1 parent 5771399 commit f2fcfbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func New(config *rest.Config, options Options) (Manager, error) {
return nil, fmt.Errorf("failed to new pprof listener: %w", err)
}

errChan := make(chan error)
errChan := make(chan error, 1)
runnables := newRunnables(options.BaseContext, errChan)
return &controllerManager{
stopProcedureEngaged: pointer.Int64(0),
Expand Down

0 comments on commit f2fcfbb

Please sign in to comment.