mirror of
https://github.com/aljazceru/lspd.git
synced 2025-12-23 00:34:21 +01:00
don't notify the same payment hash if recent
This commit is contained in:
3
main.go
3
main.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user