fix: metricstore NATS contention

Entire-Checkpoint: 7e68050cab59
This commit is contained in:
2026-03-18 06:14:15 +01:00
parent 33bc19c732
commit 50aed595cf
3 changed files with 40 additions and 4 deletions

View File

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