unify worker num to workers

This commit is contained in:
astraw99
2021-08-09 10:48:53 +08:00
parent fc26906546
commit e6df935fd3
10 changed files with 21 additions and 21 deletions

View File

@@ -432,7 +432,7 @@ func (c *Controller) Enqueue() {
}
// Run the controller until stopped.
func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) {
func (c *Controller) Run(workers int, stopCh <-chan struct{}) {
defer utilruntime.HandleCrash()
// make sure the work queue is shutdown which will trigger workers to end
defer c.queue.ShutDown()