Fix memoryStore Init and move MetricConfig init

This commit is contained in:
2025-10-20 10:22:40 +02:00
parent 67be9aa27b
commit bc43c844fc
5 changed files with 45 additions and 28 deletions

View File

@@ -248,12 +248,10 @@ func main() {
// Metric Store starts after all flags have been processes
if memorystore.InternalCCMSFlag {
if mscfg := ccconf.GetPackageConfig("metric-store"); mscfg != nil {
memorystore.InitMetricStore(mscfg)
memorystore.Init(mscfg, &wg)
} else {
cclog.Abort("Metric Store configuration must be present")
}
memorystore.Init(&wg)
}
archiver.Start(repository.GetJobRepository())