Skip to content

Commit

Permalink
set target_ident when cache is not sync (#1708)
Browse files Browse the repository at this point in the history
  • Loading branch information
qifenggang committed Sep 18, 2023
1 parent 3e72737 commit 44ed90e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions alert/process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,13 @@ func (p *Processor) mayHandleIdent() {
if target, exists := p.TargetCache.Get(ident); exists {
p.target = target.Ident
p.targetNote = target.Note
} else {
p.target = ident
p.targetNote = ""
}
} else {
p.target = ""
p.targetNote = ""
}
}

Expand Down

0 comments on commit 44ed90e

Please sign in to comment.