fix: Blocking ReceiveNats call

Entire-Checkpoint: 38a235c86ceb
This commit is contained in:
2026-03-18 06:47:45 +01:00
parent bf1a8a174e
commit 8b132ed7f8

View File

@@ -184,10 +184,11 @@ func Init(rawConfig json.RawMessage, metrics map[string]MetricConfig, wg *sync.W
shutdownFuncMu.Unlock()
if Keys.Subscriptions != nil {
err = ReceiveNats(ms, Keys.NumWorkers, ctx)
if err != nil {
wg.Go(func() {
if err := ReceiveNats(ms, Keys.NumWorkers, ctx); err != nil {
cclog.Fatal(err)
}
})
}
}