Alerting: Return chan <-error for #61811 (#61858)

This commit is contained in:
George Robinson
2023-01-24 15:41:38 +00:00
committed by GitHub
parent cc502bbfbd
commit 239d94205a
7 changed files with 35 additions and 13 deletions
+4 -1
View File
@@ -62,7 +62,10 @@ func (f *FakeRuleReader) ListAlertRules(_ context.Context, q *models.ListAlertRu
type FakeHistorian struct{}
func (f *FakeHistorian) RecordStatesAsync(ctx context.Context, rule *models.AlertRule, states []StateTransition) {
func (f *FakeHistorian) RecordStatesAsync(ctx context.Context, rule *models.AlertRule, states []StateTransition) <-chan error {
errCh := make(chan error)
close(errCh)
return errCh
}
// NotAvailableImageService is a service that returns ErrScreenshotsUnavailable.