Skip to content

Commit 2991739

Browse files
authored
Return false to disable retries
Signed-off-by: Mikhail Burshteyn <[email protected]>
1 parent 418e004 commit 2991739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notify/telegram/telegram.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (n *Notifier) Notify(ctx context.Context, alert ...*types.Alert) (bool, err
8181

8282
messageText, truncated := notify.TruncateInRunes(tmpl(n.conf.Message), maxMessageLenRunes)
8383
if err != nil {
84-
return true, err
84+
return false, err
8585
}
8686
if truncated {
8787
n.logger.Warn("Truncated message", "alert", key, "max_runes", maxMessageLenRunes)

0 commit comments

Comments
 (0)