Merge pull request #1911 from alixander/fix-routing-plugin-2

fix routing plugin
This commit is contained in:
Alexander Wang 2024-04-15 17:53:04 -07:00 committed by GitHub
commit 2340b47a31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -150,9 +150,11 @@ func routeEdges(ctx context.Context, p RoutingPlugin, ms *xmain.State) error {
return err
}
in := routeEdgesInput{}
var in routeEdgesInput
err = json.Unmarshal(inRaw, &in)
if err != nil {
return err
}
var g d2graph.Graph
if err := d2graph.DeserializeGraph(in.g, &g); err != nil {