Browse Source

delete no use code

tags/v5.8.0
Ulric Qin 4 years ago
parent
commit
4f8fedbaa0
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      src/server/engine/worker.go

+ 1
- 4
src/server/engine/worker.go View File

@@ -198,16 +198,13 @@ func (r RuleEval) judge(vectors []Vector) {
tagsMap[string(label)] = string(value) tagsMap[string(label)] = string(value)
} }


// handle target note and target_tags
// handle target note
targetIdent, has := vectors[i].Labels["ident"] targetIdent, has := vectors[i].Labels["ident"]
targetNote := "" targetNote := ""
if has { if has {
target, exists := memsto.TargetCache.Get(string(targetIdent)) target, exists := memsto.TargetCache.Get(string(targetIdent))
if exists { if exists {
targetNote = target.Note targetNote = target.Note
for label, value := range target.TagsMap {
tagsMap[label] = value
}
} }
} }




Loading…
Cancel
Save