fix: return error when chat-channel start has error (#18068)

This commit is contained in:
Haruko386
2026-08-11 19:36:35 +08:00
committed by GitHub
parent c75edbfbe8
commit 3ef6e45e43
2 changed files with 40 additions and 25 deletions

View File

@@ -919,7 +919,10 @@ func startServer(ctx context.Context) {
// Setup routes
r.Setup(ginEngine)
channels.Start(ctx)
_, err := channels.Start(ctx)
if err != nil {
common.Fatal("Fail to start chat-channel", zap.Error(err))
}
apiServerConfig := globalConfig.GetAPIServerConfig()