fix: disable newapi assembly/worker and update Makefile test flags

This commit is contained in:
Your Name
2026-05-11 12:20:26 +08:00
parent 5beb002d2f
commit 2308ae1261
2 changed files with 4 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
test:
go test ./...
go test ./... -count=1 -p 1
run:
go run ./cmd/ai-customer-service

View File

@@ -127,7 +127,8 @@ func New(cfg *config.Config, logger *slog.Logger) (*App, error) {
adapters = append(adapters, platformadapter.NewSub2APIAdapter())
}
if cfg.PlatformAdapters.NewAPI.Enabled {
adapters = append(adapters, platformadapter.NewNewAPIAdapter())
// TODO: re-enable when newapi ingress implementation is complete
// adapters = append(adapters, platformadapter.NewNewAPIAdapter())
}
if len(adapters) > 0 {
platformWebhookHandler = handlers.NewPlatformWebhookHandler(dialogSvc, platformadapter.NewRegistry(adapters...), platformEvents)
@@ -184,7 +185,7 @@ func New(cfg *config.Config, logger *slog.Logger) (*App, error) {
go worker.Start(workerCtx)
}
startWorker("sub2api", cfg.PlatformAdapters.Sub2API)
startWorker("newapi", cfg.PlatformAdapters.NewAPI)
// startWorker("newapi", cfg.PlatformAdapters.NewAPI) // disabled until ingress implementation is complete
}
closers = append(workerClosers, closers...)