skydive-project / skydive

An open source real-time network topology and protocols analyzer
https://skydive.network
Apache License 2.0
2.68k stars 404 forks source link

graffiti: fix event generated by UpdateMetadata #2408

Closed adrianlzt closed 2 years ago

adrianlzt commented 2 years ago

UpdateMetadata was always sending a NodeUpdated event, even when the updated object was an edge.

That was causing a panic in EventHandler.notifyListeners: interface conversion: interface {} is graph.Edge, not graph.Node