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

refactor(iroh-net): remove NetworkMap #1447

Merged
merged 2 commits into from
Sep 2, 2023
Merged

refactor(iroh-net): remove NetworkMap #1447

merged 2 commits into from
Sep 2, 2023

Conversation

Frando
Copy link
Member

@Frando Frando commented Sep 2, 2023

Description

While having another look at the code when thinking about #1440 I realized that the NetworkMapis never used apart from serving as a source of entries for the PeerMap.

So I removed it. Looks much simpler now, and tests passed for me locally. Not sure if I haven't missed something.

Notes & open questions

  • We never remove entries from the peer_map. This is already the case before this PR if I'm not missing something, because we never removed entries from the NetworkMap, and only the latter would ever have triggered a removal of entries from the peer_map.

Change checklist

  • Self-review.
  • Documentation updates if relevant.
  • Tests if relevant.

@Frando Frando force-pushed the refactor-netmap branch 2 times, most recently from 7004506 to fdbf3d5 Compare September 2, 2023 01:17
Copy link
Contributor

@dignifiedquire dignifiedquire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to figure out how to handle deletion & cleanup over time, but that wasn't handled properly before any way

@dignifiedquire dignifiedquire added this pull request to the merge queue Sep 2, 2023
Merged via the queue into main with commit bc26321 Sep 2, 2023
@dignifiedquire dignifiedquire deleted the refactor-netmap branch September 2, 2023 11:57
@b5 b5 added this to the v0.6.0-alpha2 milestone Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants