Refactor handlers.NewApp

This commit is contained in:
galt committed 2025-10-16 23:50:29 +02:00
1 parent fd24695764
commit ab0b102a81
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -22,11 +22,11 @@ type App struct {
LastSummary *FinalizedSummary
}
func NewApp(db *sql.DB, broker *Broker, finalizeUpdate chan struct{}) *App {
func NewApp(db *sql.DB, broker *Broker) *App {
return &App{
DB: db,
Broker: broker,
FinalizeUpdate: finalizeUpdate,
FinalizeUpdate: make(chan struct{}, 1),
}
}