have Layout timeout match d2
This commit is contained in:
parent
d9cf6871aa
commit
ce1cb0859b
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
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()
|
defer cancel()
|
||||||
|
|
||||||
graphBytes, err := d2graph.SerializeGraph(g)
|
graphBytes, err := d2graph.SerializeGraph(g)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue