Skip to content

Commit

Permalink
Silent report submitted event notification (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo authored Dec 13, 2024
1 parent f6cccf2 commit 2ce0238
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 2ce0238

Please sign in to comment.