tech(pagerduty): sync calls should be using context

This commit is contained in:
bergquist 2016-11-08 20:05:43 +01:00
parent b5c96d2685
commit 5542b0ab9e

View File

@ -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))
}