Skip to content
Snippets Groups Projects
Commit d8034e02 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

remove run loop

parent 2fe8453b
No related branches found
No related tags found
7 merge requests!246Develop,!245Develop into Master,!244Master into develop2 into master,!219Draft: Testing,!214Test pipelines,!198remove run loop,!138Develop
Pipeline #81459 passed with warnings
...@@ -124,13 +124,11 @@ func Run(ctx context.Context) error { ...@@ -124,13 +124,11 @@ func Run(ctx context.Context) error {
return initError return initError
} }
log.WithFields(log.Fields{}).Info("initialisation finished") log.WithFields(log.Fields{}).Info("initialisation finished")
for { select {
select { case <-c.stopChan:
case <-c.stopChan: return shutdown()
return shutdown() case <-ctx.Done():
case <-ctx.Done(): return shutdown()
return shutdown()
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment