galt #1

Merged
bartha.gabor merged 19 commits from galt into main 2025-10-20 08:06:40 +02:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit ab0b102a81 - Show all commits

View File

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

View File

@@ -53,7 +53,7 @@ func main() {
defer db.Close() defer db.Close()
// Create App // Create App
app := handlers.NewApp(db, handlers.NewBroker(), make(chan struct{}, 1)) app := handlers.NewApp(db, handlers.NewBroker())
// Create server // Create server
srv := NewServer(app, "0.0.0.0:7153", []string{"*"}) srv := NewServer(app, "0.0.0.0:7153", []string{"*"})