From 2ce023893aac31346c40d6e3791663fb3322e67a Mon Sep 17 00:00:00 2001 From: pablomendezroyo <41727368+pablomendezroyo@users.noreply.github.com> Date: Fri, 13 Dec 2024 17:31:26 +0100 Subject: [PATCH] Silent report submitted event notification (#90) --- internal/application/services/events_watcher.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/internal/application/services/events_watcher.go b/internal/application/services/events_watcher.go index 44f6e9b..b5c63ba 100644 --- a/internal/application/services/events_watcher.go +++ b/internal/application/services/events_watcher.go @@ -95,12 +95,13 @@ func (ew *EventsWatcher) watchCsFeeDistributorEvents(ctx context.Context) error // Handlers Vebo func (ew *EventsWatcher) HandleReportSubmittedEvent(reportSubmitted *domain.VeboReportSubmitted) error { + // TODO: research what does this event mean and what should be done with it and why its emitted so often // send the notification message - message := fmt.Sprintf("- 📈 New submitted report in slot %s", reportSubmitted.RefSlot) - if err := ew.notifierPort.SendNotification(message); err != nil { - logger.ErrorWithPrefix(ew.servicePrefix, "Error sending reportSubmitted event notification", err) - return err - } + // message := fmt.Sprintf("- 📈 New submitted report in slot %s", reportSubmitted.RefSlot) + // if err := ew.notifierPort.SendNotification(message); err != nil { + // logger.ErrorWithPrefix(ew.servicePrefix, "Error sending reportSubmitted event notification", err) + // return err + // } return nil }