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

Perform insertion, removal etc of peers in a single event loop in the RT #60

Open
aarshkshah1992 opened this issue Mar 18, 2020 · 1 comment
Assignees

Comments

@aarshkshah1992
Copy link
Contributor

We need to move the code that listens for various events (PeerProtocolUpdated, PeerDisconnected/Connected etc etc) into a single event loop inside the Routing Table.

There's no reason to keep it in the DHT since we eventually want the RT to be a self sustaining data structure. This will also help prevent race conditions that arise in managing the RT/replacement-cache & make the code easy to reason about.

Once libp2p/go-libp2p#801 goes in, we only need to depend on the event bus for all the relevant events & so will not have to depend on the host.

@aarshkshah1992 aarshkshah1992 self-assigned this Mar 18, 2020
@aarshkshah1992
Copy link
Contributor Author

ping @Stebalien @raulk @aschmahmann .

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

No branches or pull requests

1 participant