mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 10:50:37 -06:00
tech(pagerduty): sync calls should be using context
This commit is contained in:
parent
b5c96d2685
commit
5542b0ab9e
@ -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))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user