run processor

This commit is contained in:
nquidox 2026-02-21 17:00:18 +03:00
parent 9c79b04d4c
commit c44709373e
2 changed files with 36 additions and 32 deletions

View file

@ -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")
}
}