Skip to content

Commit

Permalink
Making sure everything is able to run at the same time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Siposattila committed May 23, 2024
1 parent 950693f commit 606465d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/gobulk/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/Siposattila/gobulk/internal/database"
"github.com/Siposattila/gobulk/internal/interfaces"
"github.com/Siposattila/gobulk/internal/kill"
"github.com/Siposattila/gobulk/internal/logger"
)

func main() {
Expand Down Expand Up @@ -35,9 +36,12 @@ func main() {
app.Bulk.StartConsole()
}
} else {
app.Sync.Start()
go app.Sync.Start()
go app.Server.Run()
go app.Validation.Start()

<-kill.KillCtx.Done()
logger.Warning("Shutdown completed.")
}
}

Expand Down

0 comments on commit 606465d

Please sign in to comment.