run processor
This commit is contained in:
parent
9c79b04d4c
commit
c44709373e
2 changed files with 36 additions and 32 deletions
|
|
@ -17,12 +17,9 @@ func main() {
|
|||
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
|
||||
defer cancel()
|
||||
|
||||
appl := app.NewApp(app.Deps{
|
||||
Config: c,
|
||||
RootCtx: ctx,
|
||||
})
|
||||
appl := app.NewApp(ctx, c)
|
||||
|
||||
if err := appl.Run(); err != nil {
|
||||
if err := appl.Run(ctx); err != nil {
|
||||
log.WithError(err).Fatal("Application run failed")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue