File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -323,9 +323,7 @@ func loadConfigMapVerifierDataFromUpdate(update *payload.Update, clientBuilder v
323
323
// Run runs the cluster version operator until stopCh is completed. Workers is ignored for now.
324
324
func (optr * Operator ) Run (ctx context.Context , workers int ) {
325
325
defer utilruntime .HandleCrash ()
326
- // TODO: when Kube 77170 is fixed we can remove the use of the once here
327
- var shutdownOnce sync.Once
328
- defer shutdownOnce .Do (func () { optr .queue .ShutDown () })
326
+ defer optr .queue .ShutDown ()
329
327
stopCh := ctx .Done ()
330
328
workerStopCh := make (chan struct {})
331
329
@@ -361,7 +359,7 @@ func (optr *Operator) Run(ctx context.Context, workers int) {
361
359
<- stopCh
362
360
363
361
// stop the queue, then wait for the worker to exit
364
- shutdownOnce . Do ( func () { optr .queue .ShutDown () } )
362
+ optr .queue .ShutDown ()
365
363
<- workerStopCh
366
364
}
367
365
You can’t perform that action at this time.
0 commit comments