Refactor handlers.NewApp
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user