delete no use code

This commit is contained in:
Ulric Qin 2021-12-07 13:44:14 +08:00
parent b108c9f11a
commit 4f8fedbaa0
1 changed files with 1 additions and 4 deletions

View File

@ -198,16 +198,13 @@ func (r RuleEval) judge(vectors []Vector) {
tagsMap[string(label)] = string(value)
}
// handle target note and target_tags
// handle target note
targetIdent, has := vectors[i].Labels["ident"]
targetNote := ""
if has {
target, exists := memsto.TargetCache.Get(string(targetIdent))
if exists {
targetNote = target.Note
for label, value := range target.TagsMap {
tagsMap[label] = value
}
}
}