have Layout timeout match d2

This commit is contained in:
Gavin Nishizawa 2023-06-14 13:19:47 -07:00
parent d9cf6871aa
commit ce1cb0859b
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD

View file

@ -148,7 +148,7 @@ func (p *execPlugin) Info(ctx context.Context) (_ *PluginInfo, err error) {
}
func (p *execPlugin) Layout(ctx context.Context, g *d2graph.Graph) error {
ctx, cancel := timelib.WithTimeout(ctx, time.Minute)
ctx, cancel := timelib.WithTimeout(ctx, time.Minute*2)
defer cancel()
graphBytes, err := d2graph.SerializeGraph(g)