Explorar el Código

tech(pagerduty): sync calls should be using context

bergquist hace 9 años
padre
commit
5542b0ab9e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pkg/services/alerting/notifiers/pagerduty.go

+ 1 - 1
pkg/services/alerting/notifiers/pagerduty.go

@@ -71,7 +71,7 @@ func (this *PagerdutyNotifier) Notify(evalContext *alerting.EvalContext) error {
 			HttpMethod: "POST",
 			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))
 			this.log.Error("Failed to send notification to Pagerduty", "error", err, "body", string(body))
 		}
 		}