kytos-ng / pathfinder

Kytos main path finder Network Application (NApp)
https://kytos-ng.github.io/api/pathfinder.html
MIT License
0 stars 7 forks source link

chore: refactor `listen_to` handler as `alisten_to` and make `POST v3/` async #57

Open viniarck opened 1 year ago

viniarck commented 1 year ago

There's opportunity in the future to refactor the current decorated on_topology_event handler with alisten_to instead, and then also make the POST v3/ endpoint async, the main benefit would also be able to remove the self._lock since we wouldn't have tasks yields happening, while also being having liighter handlers, the roadblock to address this chore here is also refactor the unit tests issue #50 to be async compatible, until we get there, in the meantime, it's easier to leverage dynamic_single thread mode on listen_to instead https://github.com/kytos-ng/kytos/pull/399.