don't notify the same payment hash if recent

This commit is contained in:
Jesse de Wit
2023-11-20 13:18:20 +01:00
parent 42123bd40b
commit 23628628fe
2 changed files with 48 additions and 3 deletions

View File

@@ -98,9 +98,10 @@ func main() {
forwardingStore := postgresql.NewForwardingEventStore(pool)
notificationsStore := postgresql.NewNotificationsStore(pool)
lsps2Store := postgresql.NewLsps2Store(pool)
notificationService := notifications.NewNotificationService(notificationsStore)
ctx, cancel := context.WithCancel(context.Background())
notificationService := notifications.NewNotificationService(notificationsStore)
go notificationService.Start(ctx)
openingService := common.NewOpeningService(openingStore, nodesService)
cleanupService := lsps2.NewCleanupService(lsps2Store)
go cleanupService.Start(ctx)