From 191eab324466f36f5cc6c4c82e4c6e5bc32b66cd Mon Sep 17 00:00:00 2001 From: pablomendezroyo Date: Fri, 13 Dec 2024 17:31:10 +0100 Subject: [PATCH] Silent report submitted event notification --- 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 }