Skip to content

Commit

Permalink
Silent report submitted event notification
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo committed Dec 13, 2024
1 parent f6cccf2 commit 191eab3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions internal/application/services/events_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 191eab3

Please sign in to comment.