Bump mermaid render timeout to 90s

This commit is contained in:
Manuel Rüger 2023-10-23 21:09:49 +02:00
parent 04bf20c0a3
commit 292bd0d713

View File

@ -11,7 +11,7 @@ import (
"github.com/reconquest/pkg/log" "github.com/reconquest/pkg/log"
) )
var renderTimeout = 60 * time.Second var renderTimeout = 90 * time.Second
func ProcessMermaidLocally(title string, mermaidDiagram []byte, scale float64) (attachment.Attachment, error) { func ProcessMermaidLocally(title string, mermaidDiagram []byte, scale float64) (attachment.Attachment, error) {
ctx, cancel := context.WithTimeout(context.TODO(), renderTimeout) ctx, cancel := context.WithTimeout(context.TODO(), renderTimeout)