Skip to content

Commit 5542b0a

Browse files
committed
tech(pagerduty): sync calls should be using context
1 parent b5c96d2 commit 5542b0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/services/alerting/notifiers/pagerduty.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (this *PagerdutyNotifier) Notify(evalContext *alerting.EvalContext) error {
7171
HttpMethod: "POST",
7272
}
7373

74-
if err := bus.Dispatch(cmd); err != nil {
74+
if err := bus.DispatchCtx(evalContext.Ctx, cmd); err != nil {
7575
this.log.Error("Failed to send notification to Pagerduty", "error", err, "body", string(body))
7676
}
7777

0 commit comments

Comments
 (0)