Skip to content

Commit

Permalink
fix: edge host miss alert
Browse files Browse the repository at this point in the history
  • Loading branch information
710leo committed May 30, 2024
1 parent 76583a6 commit 0e2a665
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alert/alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cmd/edge/edge.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0e2a665

Please sign in to comment.