Skip to content

Commit

Permalink
🧹 Cleanup unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
foysalit committed Nov 16, 2024
1 parent 1fee4ae commit 1047e8f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions automod/engine/persist.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,10 @@ func (eng *Engine) persistRecordModActions(c *RecordContext) error {
if err != nil {
return fmt.Errorf("failed to circuit break takedowns: %w", err)
}
// @TODO: should we check for existing escalation? there doesn't seem to be an existing flag for this at record level
newEscalation, err := eng.circuitBreakModAction(ctx, c.effects.RecordEscalate)
if err != nil {
return fmt.Errorf("circuit-breaking escalation: %w", err)
}
// @TODO: should we check if the subject is already acked? there doesn't seem to be an existing flag for this at record level
newAcknowledge, err := eng.circuitBreakModAction(ctx, c.effects.RecordAcknowledge)
if err != nil {
return fmt.Errorf("circuit-breaking acknowledge: %w", err)
Expand Down

0 comments on commit 1047e8f

Please sign in to comment.