remove unnecessary wait.Until

Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
This commit is contained in:
Inteon
2021-07-27 21:43:54 +02:00
parent d430113666
commit d867fcc44d
+1 -2
View File
@@ -110,8 +110,7 @@ func (c *controller) Run(workers int, stopCh <-chan struct{}) error {
wg.Add(1)
go func() {
defer wg.Done()
// TODO (@munnerz): make time.Second duration configurable
wait.Until(func() { c.worker(ctx) }, time.Second, stopCh)
c.worker(ctx)
}()
}