Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send topology.switches and topology.links shallow copy on events #108

Merged
merged 5 commits into from
Aug 9, 2022

Conversation

viniarck
Copy link
Member

@viniarck viniarck commented Aug 8, 2022

Fixes kytos-ng/pathfinder#24

Send topology.switches and topology.links shallow copy on events:

  • kytos/topology.topology_loaded
  • kytos/topology.updated

I've also updated kytos/topology.{entities}.metadata.{action} to end a shallow copy, otherwise on pathfinder it could result in issues too

Thanks for catching this @italovalcy, in the future, let's augment our docs with more best practices for this type of issue for developers who are creating/maintaining events.

kytos/topology.topology_loaded
kytos/topology.updated
@viniarck viniarck requested review from italovalcy and a team August 8, 2022 15:20
@viniarck
Copy link
Member Author

viniarck commented Aug 8, 2022

This PR is supposed to land before #105.

@viniarck
Copy link
Member Author

viniarck commented Aug 9, 2022

Thanks for reviewing, Antonio.

@viniarck viniarck merged commit 97a04ed into master Aug 9, 2022
@viniarck viniarck deleted the fix/topology_updated_event branch August 9, 2022 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RuntimeError: dictionary changed size during iteration
2 participants