From 0e2a66570e3da7aa07ec655081f9d6dde906e7f7 Mon Sep 17 00:00:00 2001 From: ning <710leo@gmail.com> Date: Thu, 30 May 2024 16:57:04 +0800 Subject: [PATCH] fix: edge host miss alert --- alert/alert.go | 2 +- cmd/edge/edge.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)