diff --git a/alert/alert.go b/alert/alert.go index 223626292..45d6f89c7 100644 --- a/alert/alert.go +++ b/alert/alert.go @@ -53,7 +53,7 @@ func Initialize(configDir string, cryptoKey string) (func(), error) { alertStats := astats.NewSyncStats() configCache := memsto.NewConfigCache(ctx, syncStats, nil, "") - targetCache := memsto.NewTargetCache(ctx, syncStats, nil) + targetCache := memsto.NewTargetCache(ctx, syncStats, redis) busiGroupCache := memsto.NewBusiGroupCache(ctx, syncStats) alertMuteCache := memsto.NewAlertMuteCache(ctx, syncStats) alertRuleCache := memsto.NewAlertRuleCache(ctx, syncStats) diff --git a/cmd/edge/edge.go b/cmd/edge/edge.go index b1974882e..1b363e896 100644 --- a/cmd/edge/edge.go +++ b/cmd/edge/edge.go @@ -50,7 +50,7 @@ func Initialize(configDir string, cryptoKey string) (func(), error) { syncStats := memsto.NewSyncStats() - targetCache := memsto.NewTargetCache(ctx, syncStats, nil) + targetCache := memsto.NewTargetCache(ctx, syncStats, redis) busiGroupCache := memsto.NewBusiGroupCache(ctx, syncStats) idents := idents.New(ctx, redis) metas := metas.New(redis)