mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tech(pagerduty): sync calls should be using context
This commit is contained in:
@@ -71,7 +71,7 @@ func (this *PagerdutyNotifier) Notify(evalContext *alerting.EvalContext) error {
|
||||
HttpMethod: "POST",
|
||||
}
|
||||
|
||||
if err := bus.Dispatch(cmd); err != nil {
|
||||
if err := bus.DispatchCtx(evalContext.Ctx, cmd); err != nil {
|
||||
this.log.Error("Failed to send notification to Pagerduty", "error", err, "body", string(body))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user