fix(png-renderer): increase timeouts

This commit is contained in:
bergquist 2016-09-22 19:24:18 +02:00
parent 76b8cff445
commit a49c21df3a
2 changed files with 3 additions and 3 deletions

View File

@ -72,8 +72,8 @@ func (n *RootNotifier) uploadImage(context *EvalContext) error {
Url: imageUrl,
Width: "800",
Height: "400",
SessionId: "123",
Timeout: "10",
SessionId: "cef0256d482b4293",
Timeout: "30",
}
if imagePath, err := renderer.RenderToPng(renderOpts); err != nil {

View File

@ -44,7 +44,7 @@ func sendWebRequest(webhook *Webhook) error {
webhookLog.Debug("Sending webhook", "url", webhook.Url)
client := http.Client{
Timeout: time.Duration(3 * time.Second),
Timeout: time.Duration(10 * time.Second),
}
request, err := http.NewRequest("POST", webhook.Url, bytes.NewReader([]byte(webhook.Body)))