feat(startup): print service banner after listener ready

This commit is contained in:
ryan
2026-07-13 15:49:19 +08:00
parent 26be762c3a
commit 6b6c786cfe
11 changed files with 200 additions and 13 deletions
+3 -1
View File
@@ -31,7 +31,9 @@ var allCmd = &cobra.Command{
go func() {
defer wg.Done()
log.Println("[All] 启动 API 服务")
router.Serve()
router.Serve(func() {
printStartupBanner(startupState{mode: "API + Worker + Scheduler", relationalDB: latestMigrationState.relationalDB, clickHouseDB: latestMigrationState.clickHouseDB, listensForHTTP: true})
})
}()
// 启动 Asynq Worker 任务处理服务