Skip to content

Commit

Permalink
fix: notify recover only when alert has been sent
Browse files Browse the repository at this point in the history
  • Loading branch information
albttx committed Nov 15, 2022
1 parent 238bf35 commit 6f79cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cosmos-notifyer/cli_start.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (s *service) blockHandler(ctx context.Context, c *cosmosblocks.Client, chai
}
}
} else {
if missedBlocks != 0 {
if missedBlocks != 0 && missedBlocks < missedBlocksAlert {
s.notify.Recover(notifyer.RecoverMsg{
Msg: fmt.Sprintf("[%s] Signing block again, missed blocks: %d", chain.Name, missedBlocks),
})
Expand Down

0 comments on commit 6f79cba

Please sign in to comment.