Compare commits

...

1 Commits

Author SHA1 Message Date
ning
495cda2dd9 code refactor 2024-11-08 15:42:10 +08:00

View File

@@ -121,7 +121,7 @@ func Initialize(configDir string, cryptoKey string) (func(), error) {
pushgwRouter := pushgwrt.New(config.HTTP, config.Pushgw, config.Alert, targetCache, busiGroupCache, idents, metas, writers, ctx)
go func() {
if models.CanMigrateBg(ctx) {
if config.Center.MigrateBusiGroupLabel || models.CanMigrateBg(ctx) {
models.MigrateBg(ctx, pushgwRouter.Pushgw.BusiGroupLabelKey)
}
}()