NOISSUE - Remove reports from the Nats handler

Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com>
This commit is contained in:
Dusan Borovcanin
2025-05-14 14:58:21 +02:00
parent c9a51947a3
commit 5d7d4b842d
-13
View File
@@ -35,25 +35,12 @@ func (re *re) Handle(msg *messaging.Message) error {
return err
}
reportConfigs, err := re.repo.ListReportsConfig(ctx, pm)
if err != nil {
return err
}
for _, r := range page.Rules {
go func(ctx context.Context) {
re.errors <- re.process(ctx, r, msg)
}(ctx)
}
for _, cfg := range reportConfigs.ReportConfigs {
go func(ctx context.Context) {
if err := re.processReportConfig(ctx, cfg); err != nil {
re.errors <- err
}
}(ctx)
}
return nil
}