This commit is contained in:
Roman Perekhod
2025-09-12 12:18:47 +02:00
committed by Jörn Friedrich Dreyer
parent fbbcf3d833
commit d76afadd4d
2 changed files with 37 additions and 28 deletions
+6 -1
View File
@@ -100,7 +100,12 @@ func Server(cfg *config.Config) *cli.Command {
logger.Fatal().Err(err).Msg("can't create event handler")
}
// The event service Run() function handles the stop signal itself
go eventSVC.Run()
go func() {
err := eventSVC.Run()
if err != nil {
logger.Fatal().Err(err).Msg("can't run event server")
}
}()
}
grResults := gr.Run(ctx)