Skip to content

The swarm now spawns tasks#461

Closed
tomaka wants to merge 7 commits intolibp2p:masterfrom
tomaka:swarm-rework
Closed

The swarm now spawns tasks#461
tomaka wants to merge 7 commits intolibp2p:masterfrom
tomaka:swarm-rework

Conversation

@tomaka
Copy link
Member

@tomaka tomaka commented Sep 5, 2018

Based on top of #459

The swarm now calls tokio_executor::spawn to create tasks.

This PR is not intended to be merged, and is set aside. It's not sure whether it's worth pushing this way.
We have one task that polls all the incoming substreams of all connections, as the API of the muxed transport doesn't allow otherwise.
The only proper way to do things correctly is remove the connection reuse and rework the swarm entirely.

@tomaka tomaka added the on-ice label Sep 5, 2018
@tomaka
Copy link
Member Author

tomaka commented Sep 5, 2018

Arg, I accidentally included a rustfmt as well.
If this PR needs to be reviewed, I will reset the changes everywhere but necessary.

@tomaka
Copy link
Member Author

tomaka commented Sep 17, 2018

Closing in favor of the alternative approach in #472

@tomaka tomaka closed this Sep 17, 2018
@tomaka tomaka deleted the swarm-rework branch September 17, 2018 08:06
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.

1 participant